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