(self, name, facet)
return self
Adds a :class:`FacetType` object under the given ``name``.
Adds a :class:`FacetType` object under the given ``name``.
Adds a : class : FacetType object under the given name .
def add_facet(self, name, facet):
        """Adds a :class:`FacetType` object under the given ``name``.
        """

        if not isinstance(facet, FacetType):
            raise Exception("%r:%r is not a facet" % (name, facet))
        self.facets[name] = facet
        return self
def add_facet ( self , name , facet ) : if not isinstance ( facet , FacetType ) : raise Exception ( "%r:%r is not a facet" % ( name , facet ) ) self . facets [ name ] = facet return self