hooks/syncschema.py
brancholdstable
changeset 7254 c0278ad81823
parent 7185 6e42b595e5df
child 7398 26695dd703d8
child 7504 d95f9002edcc
equal deleted inserted replaced
7178:a62f24e1497e 7254:c0278ad81823
   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 schema initialization time so
       
   917             # there is no 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):