equal
deleted
inserted
replaced
1048 |
1048 |
1049 |
1049 |
1050 class AfterUpdateCWRDefHook(SyncSchemaHook): |
1050 class AfterUpdateCWRDefHook(SyncSchemaHook): |
1051 __regid__ = 'syncaddcwattribute' |
1051 __regid__ = 'syncaddcwattribute' |
1052 __select__ = SyncSchemaHook.__select__ & is_instance('CWAttribute', |
1052 __select__ = SyncSchemaHook.__select__ & is_instance('CWAttribute', |
1053 'CWRelation') |
1053 'CWRelation') |
1054 events = ('before_update_entity',) |
1054 events = ('before_update_entity',) |
1055 |
1055 |
1056 def __call__(self): |
1056 def __call__(self): |
1057 entity = self.entity |
1057 entity = self.entity |
1058 if self._cw.deleted_in_transaction(entity.eid): |
1058 if self._cw.deleted_in_transaction(entity.eid): |