[Zodb-checkins] SVN: ZODB/branches/jim-storage-api-cleanup/src/ZEO/StorageServer.py Extension methods are optional. getExtensionMethods only needs to

Jim Fulton jim at zope.com
Thu Apr 26 14:28:09 EDT 2007


Log message for revision 74807:
  Extension methods are optional.  getExtensionMethods only needs to
  return an iterable.
  

Changed:
  U   ZODB/branches/jim-storage-api-cleanup/src/ZEO/StorageServer.py

-=-
Modified: ZODB/branches/jim-storage-api-cleanup/src/ZEO/StorageServer.py
===================================================================
--- ZODB/branches/jim-storage-api-cleanup/src/ZEO/StorageServer.py	2007-04-26 18:25:38 UTC (rev 74806)
+++ ZODB/branches/jim-storage-api-cleanup/src/ZEO/StorageServer.py	2007-04-26 18:28:08 UTC (rev 74807)
@@ -185,15 +185,11 @@
         try:
             fn = self.storage.getExtensionMethods
         except AttributeError:
-            # We must be running with a ZODB which
-            # predates adding getExtensionMethods to
-            # BaseStorage. Eventually this try/except
-            # can be removed
-            pass
+            pass # no extension methods
         else:
             d = fn()
             self._extensions.update(d)
-            for name in d.keys():
+            for name in d:
                 assert not hasattr(self, name)
                 setattr(self, name, getattr(self.storage, name))
         self.lastTransaction = self.storage.lastTransaction



More information about the Zodb-checkins mailing list