[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)
--- 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)