hooks/syncschema.py
changeset 7184 59d953d8694e
parent 7181 e54ad6984e01
child 7185 6e42b595e5df
equal deleted inserted replaced
7180:c031ea58d5f1 7184:59d953d8694e
   910     events = ('after_add_entity',)
   910     events = ('after_add_entity',)
   911 
   911 
   912     def __call__(self):
   912     def __call__(self):
   913         entity = self.entity
   913         entity = self.entity
   914         if entity.cw_edited.get('final'):
   914         if entity.cw_edited.get('final'):
       
   915             # final entity types don't need a table in the database and are
       
   916             # systematically added by yams at initialization time so there is no
       
   917             # need to do further processing. Simply assign its eid.
       
   918             self._cw.vreg.schema[entity.name].eid = entity.eid
   915             return
   919             return
   916         CWETypeAddOp(self._cw, entity=entity)
   920         CWETypeAddOp(self._cw, entity=entity)
   917 
   921 
   918 
   922 
   919 class BeforeUpdateCWETypeHook(DelCWETypeHook):
   923 class BeforeUpdateCWETypeHook(DelCWETypeHook):