equal
deleted
inserted
replaced
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): |