cwvreg.py
changeset 3396 fb261afd49cd
parent 3376 f5c69485381f
child 3451 6b46d73823f5
equal deleted inserted replaced
3395:405f393bcac0 3396:fb261afd49cd
   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