[Zope] filesystem directory view

Dieter Maurer dieter at handshake.de
Sun Sep 25 17:50:52 EDT 2005


David Bear wrote at 2005-9-23 10:23 -0700:
> ...
>I'm trying to use the file system directory view product to build a simple
>graphics library. My thinking was to store all images on the unix file
>system, then let some store some meta data on each image. Trouble is, I'm
>not finding any 'beginning' documentation on using file system directory
>view. seach zope.org <http://zope.org> yeilds hundreds of hits.

Probably, because it is almost precisely what the name promisses:

   a "view" on a filesystem directory.

It sees objects based on registered extensions (registered
via "registerFileExtension(extension, class)"). The registration
also defines the class, the file is mapped to.

There is an additional feature: if there is a "file.metadata" file,
then its content (format seen in the tests ".../CMFCore/tests/*/*/*.metadata")
defines metadata for "file".

> ...
>my second question is, .. is file system directory view what I want.

Probably not. Zope will not let you change objects via this
view.

>Again,
>I want to store files in the unix file system, expose those to zope, then
>store meta data on each of those image in zodb.

The last feature is not supported by "FSDV" (also, you can
implement it yourself).

-- 
Dieter


More information about the Zope mailing list