server/edition.py
changeset 8695 358d8bed9626
parent 8694 d901c36bcfce
child 8892 80783605d270
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   139             relations = [entity._cw.vreg.schema.rschema(rtype)
   139             relations = [entity._cw.vreg.schema.rschema(rtype)
   140                          for rtype in self]
   140                          for rtype in self]
   141         try:
   141         try:
   142             entity.e_schema.check(dict_protocol_catcher(entity),
   142             entity.e_schema.check(dict_protocol_catcher(entity),
   143                                   creation=creation, relations=relations)
   143                                   creation=creation, relations=relations)
   144         except ValidationError, ex:
   144         except ValidationError as ex:
   145             ex.entity = self.entity
   145             ex.entity = self.entity
   146             raise
   146             raise
   147 
   147 
   148     def clone(self):
   148     def clone(self):
   149         thecopy = EditedEntity(copy(self.entity))
   149         thecopy = EditedEntity(copy(self.entity))