# HG changeset patch # User Sylvain Thénault # Date 1298043002 -3600 # Node ID fc7ac3409b0cf4c8692c9f3ec9cee60fd61c7b28 # Parent 7e3e80f4179a5d7a3fa19d18ba940b205357d113 [schema sync] we don't want to react on after_update_entity, it may only causes bug. CWUniqueConstraint should be deleted then a fresh one readded on change (as we do in sync_schema_props_perms) diff -r 7e3e80f4179a -r fc7ac3409b0c hooks/syncschema.py --- a/hooks/syncschema.py Fri Feb 18 09:33:32 2011 +0100 +++ b/hooks/syncschema.py Fri Feb 18 16:30:02 2011 +0100 @@ -1127,7 +1127,7 @@ class AfterAddCWUniqueTogetherConstraintHook(SyncSchemaHook): __regid__ = 'syncadd_cwuniquetogether_constraint' __select__ = SyncSchemaHook.__select__ & is_instance('CWUniqueTogetherConstraint') - events = ('after_add_entity', 'after_update_entity') + events = ('after_add_entity',) def __call__(self): CWUniqueTogetherConstraintAddOp(self._cw, entity=self.entity)