hooks/syncschema.py
changeset 7184 59d953d8694e
parent 7181 e54ad6984e01
child 7185 6e42b595e5df
--- a/hooks/syncschema.py	Tue Apr 05 13:24:02 2011 +0200
+++ b/hooks/syncschema.py	Wed Apr 06 10:10:21 2011 +0200
@@ -912,6 +912,10 @@
     def __call__(self):
         entity = self.entity
         if entity.cw_edited.get('final'):
+            # final entity types don't need a table in the database and are
+            # systematically added by yams at initialization time so there is no
+            # need to do further processing. Simply assign its eid.
+            self._cw.vreg.schema[entity.name].eid = entity.eid
             return
         CWETypeAddOp(self._cw, entity=entity)