l.s.f.DuplicateBug(BugField) : class documentation

Part of lp.services.fields View In Hierarchy

A bug that the context is a duplicate of.
Method _validate Prevent dups of dups.

Inherited from BugField:

Method __init__ The schema will always be IBug.
Method _get_schema Get the schema here to avoid circular imports.
Method _set_schema Ignore attempts to set the schema by the superclass.
def _validate(self, value):
Prevent dups of dups.

Returns True if the dup target is not a duplicate /and/ if the current bug doesn't have any duplicates referencing it /and/ if the bug isn't a duplicate of itself, otherwise return False.

API Documentation for Launchpad, generated by pydoctor at 2021-03-09 00:00:03.