Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
72818b0b
Commit
72818b0b
authored
May 11, 2007
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delay import of ZODB.Blobs.Blob to avoid a dependency on pywin32 on
Windows when Blobs aren't used.
parent
e4d007cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+4
-2
No files found.
src/ZEO/ClientStorage.py
View file @
72818b0b
...
...
@@ -39,7 +39,6 @@ from ZODB import POSException
from
ZODB
import
utils
from
ZODB.loglevels
import
BLATHER
from
ZODB.Blobs.interfaces
import
IBlobStorage
from
ZODB.Blobs.Blob
import
FilesystemHelper
from
persistent.TimeStamp
import
TimeStamp
logger
=
logging
.
getLogger
(
'ZEO.ClientStorage'
)
...
...
@@ -321,7 +320,10 @@ class ClientStorage(object):
self
.
blob_dir
=
blob_dir
self
.
blob_cache_writable
=
blob_cache_writable
if
blob_dir
is
not
None
:
self
.
fshelper
=
FilesystemHelper
(
blob_dir
)
# Avoid doing this import unless we need it, as it
# currently requires pywin32 on Windows.
import
ZODB.Blobs.Blob
self
.
fshelper
=
ZODB
.
Blobs
.
Blob
.
FilesystemHelper
(
blob_dir
)
self
.
fshelper
.
create
()
self
.
fshelper
.
checkSecure
()
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment