[Zodb-checkins]
SVN: ZODB/branches/ctheune-blobsupport/src/ZEO/ClientStorage.py
Remove unused method and document new constructor arguments.
Chris McDonough
chrism at plope.com
Sun Mar 27 08:29:04 EST 2005
Log message for revision 29689:
Remove unused method and document new constructor arguments.
Changed:
U ZODB/branches/ctheune-blobsupport/src/ZEO/ClientStorage.py
-=-
Modified: ZODB/branches/ctheune-blobsupport/src/ZEO/ClientStorage.py
===================================================================
--- ZODB/branches/ctheune-blobsupport/src/ZEO/ClientStorage.py 2005-03-27 11:05:57 UTC (rev 29688)
+++ ZODB/branches/ctheune-blobsupport/src/ZEO/ClientStorage.py 2005-03-27 13:29:03 UTC (rev 29689)
@@ -111,7 +111,8 @@
wait_for_server_on_startup=None, # deprecated alias for wait
wait=None, wait_timeout=None,
read_only=0, read_only_fallback=0,
- username='', password='', realm=None, blob_dir="/tmp"):
+ username='', password='', realm=None,
+ blob_dir=tempfile.gettempdir()):
"""ClientStorage constructor.
This is typically invoked from a custom_zodb.py file.
@@ -182,6 +183,11 @@
password -- string with plaintext password to be used
when authenticated.
+ realm -- not documented.
+
+ blob_dir -- directory path for blob data. 'blob data' is data that
+ is retrieved via the loadBlob API.
+
Note that the authentication protocol is defined by the server
and is detected by the ClientStorage upon connecting (see
testConnection() and doAuth() for details).
@@ -909,11 +915,8 @@
"""
return self._getCleanFilename(oid, serial) + "." + BLOB_DIRTY
- def _getBlobPath(self, oid):
- return self.blob_dir
-
def _getCleanFilename(self, oid, tid):
- return os.path.join(self._getBlobPath(oid),
+ return os.path.join(self.blob_dir,
"%s-%s%s" % (utils.oid_repr(oid),
utils.tid_repr(tid),
BLOB_SUFFIX,)
More information about the Zodb-checkins
mailing list