cwvreg.py
changeset 3376 f5c69485381f
parent 3369 7b88d12b4ee2
child 3451 6b46d73823f5
equal deleted inserted replaced
3375:ebb11fa58ab9 3376:f5c69485381f
   159             # no entity class for any of the ancestors, fallback to the default
   159             # no entity class for any of the ancestors, fallback to the default
   160             # one
   160             # one
   161             objects = self['Any']
   161             objects = self['Any']
   162             assert len(objects) == 1, objects
   162             assert len(objects) == 1, objects
   163             cls = objects[0]
   163             cls = objects[0]
   164         # make a copy event if cls.__id__ == etype, else we may have pb for
   164         # make a copy event if cls.__regid__ == etype, else we may have pb for
   165         # client application using multiple connections to different
   165         # client application using multiple connections to different
   166         # repositories (eg shingouz)
   166         # repositories (eg shingouz)
   167         cls = dump_class(cls, etype)
   167         cls = dump_class(cls, etype)
   168         cls.__id__ = etype
   168         cls.__regid__ = etype
   169         cls.__initialize__(self.schema)
   169         cls.__initialize__(self.schema)
   170         return cls
   170         return cls
   171 
   171 
   172 VRegistry.REGISTRY_FACTORY['etypes'] = ETypeRegistry
   172 VRegistry.REGISTRY_FACTORY['etypes'] = ETypeRegistry
   173 
   173