I have cmf1.4.7 installed on zope 2.7.4. I also have plone installed. All seems to work well. 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. I've looked through the install tree for zope and cmf and am not finding any usefull README's there either. so my first question is where is a good HOWTO on using filesystem directory view (I've got both the fdv that came with cmfcore and one that came with plone). my second question is, .. is file system directory view what I want. 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. -- David Bear What's the difference between private knowledge and public knowledge?
my second question is, .. is file system directory view what I want. 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.
What metadata do you want to store? and, can you store that in the filesystem too? With FSDV's you normally store metadata for the file named 'foo' in a file named 'foo.metadata'. There are some examples under the 'tests' directory of CMFCore. -PW
Hi David. I would recommend at the blob product. I have been using it with success in CMF. I would consider it a starting point for where you may want to take it. If you are looking for something already developed and ready to go, I would recommend ATManagedFile from Enfold if you plan on using Plone. It can do a great job of managing files on the filesystem where your objects also behave as proper citizens in zope. It is subclassed from ExternalFile and CMFManagedFile. I contributed documentation for it a while back and it also worked nicely. Hope that helps. Regards, David On Friday, September 23, 2005, at 02:23 PM, David Bear wrote:
I have cmf1.4.7 installed on zope 2.7.4. I also have plone installed. All seems to work well.
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 yeilds hundreds of hits.
I've looked through the install tree for zope and cmf and am not finding any usefull README's there either.
so my first question is where is a good HOWTO on using filesystem directory view (I've got both the fdv that came with cmfcore and one that came with plone).
my second question is, .. is file system directory view what I want. 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.
-- David Bear What's the difference between private knowledge and public knowledge? _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
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
participants (4)
-
David Bear -
David Pratt -
Dieter Maurer -
Paul Winkler