Thomas Bennett wrote at 2008-9-9 13:12 -0400:
>First, is there a more preferable product to use to serve files, mostly PDF,
>from the file system with Zope?
>I suspect lock_file.py has changed since the DirectoryStorage product was last
>I followed instructions on http://dirstorage.sourceforge.net/install.html to
>install DirectoryStorage. I got to step 11. "Start Zope"
>and at the end of Traceback 1 (see below)
> line 12, in ?
> from ZODB.lock_file import lock_file
>ImportError: cannot import name lock_file
>There are no classes or methods named lock_file in lock_file.py so I changed
>the import statement in PosixFilesystem.py to
>from ZODB import lock_file
The interface changed a bit.
Now, it is assumed that "LockFile" is used (and "close" to release the lock).
It is probably very simple to adapt "DirectoryStorage" correspondingly.
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -