entity.py
changeset 4460 5c22869079b9
parent 4451 65f4665233e6
child 4630 528dee042927
equal deleted inserted replaced
4459:f628abfb3a6c 4460:5c22869079b9
   783         if haseid:
   783         if haseid:
   784             self['eid'] = self.eid
   784             self['eid'] = self.eid
   785         # clear relations cache
   785         # clear relations cache
   786         for rschema, _, role in self.e_schema.relation_definitions():
   786         for rschema, _, role in self.e_schema.relation_definitions():
   787             self.clear_related_cache(rschema.type, role)
   787             self.clear_related_cache(rschema.type, role)
   788 
   788         # rest path unique cache
       
   789         try:
       
   790             del self.__unique
       
   791         except AttributeError:
       
   792             pass
       
   793     
   789     # raw edition utilities ###################################################
   794     # raw edition utilities ###################################################
   790 
   795 
   791     def set_attributes(self, _cw_unsafe=False, **kwargs):
   796     def set_attributes(self, _cw_unsafe=False, **kwargs):
   792         assert kwargs
   797         assert kwargs
   793         relations = []
   798         relations = []