hooks/syncschema.py
changeset 5881 57387070f612
parent 5877 0c7b7b76a84f
child 5891 99024ad59223
equal deleted inserted replaced
5880:a022dcbed0d3 5881:57387070f612
  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):