Lines Matching refs:inherited
66 # PARENT facets are facets which are inherited from a parent image.
68 # inherited facets are stored in Facets.__inherited. Facets which are
84 # inherited and set locally, both values are preserved, but the
85 # inherited value masks the local value. Users can list and update
88 # Once an inherited facet that masks a local facet is removed, the
181 # inherited facets are added or removed.)
189 # inherited facets in a way that doesn't affect solver
191 # facet with a value that is masked by an inherited facet, or
192 # having a facet transition from being inherited to being
238 facets so make sure all inherited facets come before local
261 def __setitem_internal(self, item, value, inherited=False):
269 if (inherited and item not in self.__inherited) or \
270 (not inherited and item not in self):
273 # save the facet in the local or inherited dictionary
275 if inherited:
283 if inherited or item not in self.__inherited:
323 def __delitem_internal(self, item, inherited=False):
330 if not inherited and item not in self.__local:
333 # we should never try to delete an invalid inherited facet
334 assert not inherited or item in self.inherited
337 if inherited and item in self.__local:
338 # the inherited value was overriding a local value
349 # delete item from the local or inherited dictionary
351 if inherited:
372 """Set an inherited facet."""
373 self.__setitem_internal(item, value, inherited=True)
376 """Clear all inherited facet."""
378 self.__delitem_internal(k, inherited=True)
421 return self.__delitem_internal(item, inherited=False)
443 # preserve inherited facets.
522 def inherited(self):