[Zope-Checkins] CVS: Packages/ZEO - ClientStorage.py:1.98

Toby Dickenson tdickenson@geminidataloggers.com
Fri, 30 May 2003 04:15:24 -0400


Update of /cvs-repository/Packages/ZEO
In directory cvs.zope.org:/tmp/cvs-serv20446

Modified Files:
	ClientStorage.py 
Log Message:
Check whether a registered extension method already exists before creating the marshaller attribute. This allows for a smooth migration should a former extension method be promoted to the normal storage interface.

=== Packages/ZEO/ClientStorage.py 1.97 => 1.98 ===
--- Packages/ZEO/ClientStorage.py:1.97	Fri May 23 17:34:40 2003
+++ Packages/ZEO/ClientStorage.py	Fri May 30 04:15:23 2003
@@ -424,7 +424,8 @@
 
     def _handle_extensions(self):
         for name in self.getExtensionMethods():
-            setattr(self, name, self._server.extensionMethod(name))
+            if not hasattr(self, name):
+                setattr(self, name, self._server.extensionMethod(name))
 
     def set_server_addr(self, addr):
         # Normalize server address and convert to string