cwvreg.py
changeset 3035 2e4a381ea5b7
parent 2968 0e3460341023
parent 3032 f0ae6a5aba3e
child 3072 6fb42c53f6df
--- a/cwvreg.py	Wed Aug 26 15:00:46 2009 +0200
+++ b/cwvreg.py	Thu Aug 27 13:02:45 2009 +0200
@@ -150,9 +150,9 @@
             objects = self['Any']
             assert len(objects) == 1, objects
             cls = objects[0]
-        if cls.__id__ == etype:
-            cls.__initialize__(self.schema)
-            return cls
+        # make a copy event if cls.__id__ == etype, else we may have pb for
+        # client application using multiple connections to different
+        # repositories (eg shingouz)
         cls = dump_class(cls, etype)
         cls.__id__ = etype
         cls.__initialize__(self.schema)