integrate fix made for shingouz, let's see if it breaks something 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 27 Aug 2009 12:17:18 +0200
branch3.5
changeset 3032 f0ae6a5aba3e
parent 3029 bc573d5fb5b7
child 3034 b03c63008c61
integrate fix made for shingouz, let's see if it breaks something
cwvreg.py
--- a/cwvreg.py	Wed Aug 26 19:53:01 2009 +0200
+++ b/cwvreg.py	Thu Aug 27 12:17:18 2009 +0200
@@ -142,9 +142,9 @@
             objects = self['Any']
             assert len(objects) == 1, objects
             cls = objects[0]
-        if cls.id == etype:
-            cls.__initialize__()
-            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__()