Class s.d.b.AdaptableORMObject(Adaptable):

Part of stoqlib.domain.base View In Hierarchy

Known subclasses: stoqlib.domain.base.Domain

Undocumented
Class Method registerFacet Registers a facet for class cls.

Inherited from Adaptable:

Method __init__ Undocumented
Class Method getFacetType Fetches a facet type associated with an interface, or raise
Class Method getFacetTypes Returns facet classes for this object
Method addFacet Adds a facet implementing iface for the current object
Method removeFacet Removes a facet from the current object
Method getFacets Gets a list of facets assoicated with the current object.
@classmethod
def registerFacet(cls, facet, *ifaces):
Registers a facet for class cls.

The 'facet' argument is an adapter class which will be registered using its interfaces specified in __implements__ argument.

Notes: the assigned key will have the name of the class cls.

Parameterscls
facet
ifacesoptional list of interfaces to attach
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.