cwvreg.py
branch3.5
changeset 3032 f0ae6a5aba3e
parent 2927 d249dd9000d9
child 3035 2e4a381ea5b7
child 3071 6ad4e6d4df86
equal deleted inserted replaced
3029:bc573d5fb5b7 3032:f0ae6a5aba3e
   140             # no entity class for any of the ancestors, fallback to the default
   140             # no entity class for any of the ancestors, fallback to the default
   141             # one
   141             # one
   142             objects = self['Any']
   142             objects = self['Any']
   143             assert len(objects) == 1, objects
   143             assert len(objects) == 1, objects
   144             cls = objects[0]
   144             cls = objects[0]
   145         if cls.id == etype:
   145         # make a copy event if cls.id == etype, else we may have pb for client
   146             cls.__initialize__()
   146         # application using multiple connections to different repositories (eg
   147             return cls
   147         # shingouz)
   148         cls = dump_class(cls, etype)
   148         cls = dump_class(cls, etype)
   149         cls.id = etype
   149         cls.id = etype
   150         cls.__initialize__()
   150         cls.__initialize__()
   151         return cls
   151         return cls
   152 
   152