[Checkins] SVN: ZEO/branches/patricks-blob-dir-permissions/src/ZEO/ClientStorage.py add blob_dir_permissions option
Patrick Strawderman
cvs-admin at zope.org
Wed Oct 17 15:40:34 UTC 2012
Log message for revision 128030:
add blob_dir_permissions option
Changed:
U ZEO/branches/patricks-blob-dir-permissions/src/ZEO/ClientStorage.py
-=-
Modified: ZEO/branches/patricks-blob-dir-permissions/src/ZEO/ClientStorage.py
===================================================================
--- ZEO/branches/patricks-blob-dir-permissions/src/ZEO/ClientStorage.py 2012-10-17 15:39:49 UTC (rev 128029)
+++ ZEO/branches/patricks-blob-dir-permissions/src/ZEO/ClientStorage.py 2012-10-17 15:40:31 UTC (rev 128030)
@@ -122,7 +122,7 @@
username='', password='', realm=None,
blob_dir=None, shared_blob_dir=False,
blob_cache_size=None, blob_cache_size_check=10,
- client_label=None,
+ client_label=None, blob_dir_permissions=None,
):
"""ClientStorage constructor.
@@ -237,6 +237,9 @@
client_label
A label to include in server log messages for the client.
+ blob_dir_permissions
+ File permissions for the blob cache directory.
+
Note that the authentication protocol is defined by the server
and is detected by the ClientStorage upon connecting (see
testConnection() and doAuth() for details).
@@ -383,12 +386,14 @@
# currently requires pywin32 on Windows.
import ZODB.blob
if shared_blob_dir:
- self.fshelper = ZODB.blob.FilesystemHelper(blob_dir)
+ self.fshelper = ZODB.blob.FilesystemHelper(blob_dir,
+ blob_dir_permissions=blob_dir_permissions)
else:
if 'zeocache' not in ZODB.blob.LAYOUTS:
ZODB.blob.LAYOUTS['zeocache'] = BlobCacheLayout()
self.fshelper = ZODB.blob.FilesystemHelper(
- blob_dir, layout_name='zeocache')
+ blob_dir, layout_name='zeocache',
+ blob_dir_permissions=blob_dir_permissions)
self.fshelper.create()
self.fshelper.checkSecure()
else:
More information about the checkins
mailing list