[Zodb-checkins] SVN: ZODB/branches/jim-thready-zeo/src/ZEO/StorageServer.py Remove old storeBlob.

Jim Fulton jim at zope.com
Fri Sep 11 09:40:22 EDT 2009


Log message for revision 103735:
  Remove old storeBlob.
  

Changed:
  U   ZODB/branches/jim-thready-zeo/src/ZEO/StorageServer.py

-=-
Modified: ZODB/branches/jim-thready-zeo/src/ZEO/StorageServer.py
===================================================================
--- ZODB/branches/jim-thready-zeo/src/ZEO/StorageServer.py	2009-09-11 10:46:17 UTC (rev 103734)
+++ ZODB/branches/jim-thready-zeo/src/ZEO/StorageServer.py	2009-09-11 13:40:21 UTC (rev 103735)
@@ -1349,25 +1349,6 @@
     def info(self, arg):
         self.rpc.callAsync('info', arg)
 
-# original:
-#     def storeBlob(self, oid, serial, blobfilename):
-
-#         # This "returns" after the data are sent because the result
-#         # message will be added to the output queue after the iterator.
-
-#         def store():
-#             yield ('receiveBlobStart', (oid, serial))
-#             f = open(blobfilename, 'rb')
-#             while 1:
-#                 chunk = f.read(59000)
-#                 if not chunk:
-#                     break
-#                 yield ('receiveBlobChunk', (oid, serial, chunk, ))
-#             f.close()
-#             yield ('receiveBlobStop', (oid, serial))
-
-#         self.rpc.callAsyncIterator(store())
-
     @ZEO.thready.delayed
     def storeBlob(self, oid, serial, blobfilename):
         self.rpc.callAsync('receiveBlobStart', oid, serial)



More information about the Zodb-checkins mailing list