l.b.i.s.SpecNameField(ContentNameField) : class documentation

Part of lp.blueprints.interfaces.specification View In Hierarchy

No class docstring
Method _content_iface Return the content interface.
Method _getByName Finds a specification by name from the current context.

Inherited from ContentNameField:

Method _getByAttribute Return the content object with the given attribute.
Method _validate Check that the given name is valid (and by delegation, unique).

Inherited from UniqueField (via ContentNameField):

Method unchanged Return True if the attribute on the object is unchanged.
Method _isValueTaken Returns true if and only if the specified value is already taken.
def _content_iface(self):
Return the content interface.

Override this in subclasses.

def _getByName(self, name):
Finds a specification by name from the current context.

Returns a specification if (and only if) the current context defines a unique specification namespace and then if a matching specification can be found within that namespace. Returns None otherwise.

API Documentation for Launchpad, generated by pydoctor at 2020-06-07 00:00:04.