hooks/syncschema.py
branchstable
changeset 7185 6e42b595e5df
parent 7181 e54ad6984e01
child 7398 26695dd703d8
child 7504 d95f9002edcc
equal deleted inserted replaced
7183:5ea2bfd55399 7185:6e42b595e5df
   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
   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
   916             # systematically added by yams at schema initialization time so
   917             # need to do further processing. Simply assign its eid.
   917             # there is no need to do further processing. Simply assign its eid.
   918             self._cw.vreg.schema[entity.name].eid = entity.eid
   918             self._cw.vreg.schema[entity.name].eid = entity.eid
   919             return
   919             return
   920         CWETypeAddOp(self._cw, entity=entity)
   920         CWETypeAddOp(self._cw, entity=entity)
   921 
   921 
   922 
   922