equal
deleted
inserted
replaced
165 def __call__(self): |
165 def __call__(self): |
166 schema = self._cw.vreg.schema |
166 schema = self._cw.vreg.schema |
167 entity = self.entity |
167 entity = self.entity |
168 for attr in entity.edited_attributes: |
168 for attr in entity.edited_attributes: |
169 if schema.rschema(attr).final: |
169 if schema.rschema(attr).final: |
170 constraints = [c for c in entity.rdef(attr).constraints |
170 constraints = [c for c in entity.e_schema.rdef(attr).constraints |
171 if isinstance(c, (RQLUniqueConstraint, RQLConstraint))] |
171 if isinstance(c, (RQLUniqueConstraint, RQLConstraint))] |
172 if constraints: |
172 if constraints: |
173 _CheckConstraintsOp(self._cw, constraints=constraints, |
173 _CheckConstraintsOp(self._cw, constraints=constraints, |
174 rdef=(entity.eid, attr, None)) |
174 rdef=(entity.eid, attr, None)) |
175 |
175 |