equal
deleted
inserted
replaced
1042 SourceDbCWConstraintAdd(self._cw, entity=self.entity) |
1042 SourceDbCWConstraintAdd(self._cw, entity=self.entity) |
1043 |
1043 |
1044 |
1044 |
1045 class AfterAddConstrainedByHook(SyncSchemaHook): |
1045 class AfterAddConstrainedByHook(SyncSchemaHook): |
1046 __regid__ = 'syncdelconstrainedby' |
1046 __regid__ = 'syncdelconstrainedby' |
1047 __select__ = SyncSchemaHook.__select__ & hook.match_rtype('constrainted_by') |
1047 __select__ = SyncSchemaHook.__select__ & hook.match_rtype('constrained_by') |
1048 events = ('after_add_relation',) |
1048 events = ('after_add_relation',) |
1049 |
1049 |
1050 def __call__(self): |
1050 def __call__(self): |
1051 if self._cw.added_in_transaction(self.eidfrom): |
1051 if self._cw.added_in_transaction(self.eidfrom): |
1052 self._cw.transaction_data.setdefault(self.eidfrom, []).append(self.eidto) |
1052 self._cw.transaction_data.setdefault(self.eidfrom, []).append(self.eidto) |