equal
deleted
inserted
replaced
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)) |