Lines Matching refs:Facets
39 class Facets(dict):
52 # Facets can come from three different sources.
57 # facets will usually never be found in a Facets dictionary. (Facets
62 # in Facets.__local. Facets which are not explicitly set but match an
68 # inherited facets are stored in Facets.__inherited. Facets which are
126 rv = Facets()
135 """Compare the facet match priority of two Facets objects.
136 Since the match priority of a Facets object is dependent upon
141 assert type(other) is Facets
145 """Compare the facet values of two Facets objects. This
148 assert type(other) is Facets
152 """Compare all the facet values of two Facets objects. This
155 assert type(other) is Facets
165 """Compare two Facets objects. This comparison takes masked
170 if type(other) is not Facets:
203 return (Facets.__cmp__(self, other) == 0)
207 return (Facets.__cmp__(self, other) != 0)
211 return (Facets.__cmp__(self, other) >= 0)
215 return (Facets.__cmp__(self, other) > 0)
219 return (Facets.__cmp__(self, other) <= 0)
223 return (Facets.__cmp__(self, other) < 0)
442 if type(d) == Facets:
490 return Facets(self)
503 look it up in the current Facets object dictionary."""
533 Facets.allow_action = types.MethodType(_allow_facet, None, Facets)