server/edition.py
branchstable
changeset 9184 b982e88e4836
parent 8892 80783605d270
child 10354 635cfac73d28
equal deleted inserted replaced
9183:95e69c2d52a9 9184:b982e88e4836
   143                          for rtype in self]
   143                          for rtype in self]
   144         try:
   144         try:
   145             entity.e_schema.check(dict_protocol_catcher(entity),
   145             entity.e_schema.check(dict_protocol_catcher(entity),
   146                                   creation=creation, relations=relations)
   146                                   creation=creation, relations=relations)
   147         except ValidationError as ex:
   147         except ValidationError as ex:
   148             ex.entity = self.entity
   148             ex.entity = self.entity.eid
   149             raise
   149             raise
   150 
   150 
   151     def clone(self):
   151     def clone(self):
   152         thecopy = EditedEntity(copy(self.entity))
   152         thecopy = EditedEntity(copy(self.entity))
   153         thecopy.entity.cw_attr_cache = copy(self.entity.cw_attr_cache)
   153         thecopy.entity.cw_attr_cache = copy(self.entity.cw_attr_cache)