Way to access (filesystem-based) folder of images?
Hello, I have a bunch of thumbnails that I would like to have access to in Zope. These thumbnails need to be accessible and replaceable through the filesystem. Ive looked at ExtFile and ExtImage and it seems as if these products are designed to be usable to manage filesystem objects through Zope. This isn't what I need, because they dont appear to show objects that were not added through Zope. What I need is a way to show a directory of images on the filesystem and test via DTML if an image with a given filename exists,, It would also be nice if size data on the image was available, but thats not as important.. The crucial thing is that the images need to be managed, changed, etc. from outside of Zope via the filesystem.. -Chris
On 2/4/03 4:16 PM, "Chris Beaumont" <cbeaumon@msri.org> wrote:
Hello,
I have a bunch of thumbnails that I would like to have access to in Zope. These thumbnails need to be accessible and replaceable through the filesystem. Ive looked at ExtFile and ExtImage and it seems as if these products are designed to be usable to manage filesystem objects through Zope. This isn't what I need, because they dont appear to show objects that were not added through Zope. What I need is a way to show a directory of images on the filesystem and test via DTML if an image with a given filename exists,,
It would also be nice if size data on the image was available, but thats not as important..
The crucial thing is that the images need to be managed, changed, etc. from outside of Zope via the filesystem..
-Chris
_______________________________________________ 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 )
LocalFS should do it. http://sourceforge.net/projects/localfs
On Tue, Feb 04, 2003 at 01:16:30PM -0800, Chris Beaumont wrote:
I have a bunch of thumbnails that I would like to have access to in Zope. These thumbnails need to be accessible and replaceable through the filesystem.
The LocalFS product might suffice. An instance of its Local Filesystem Object gives you a zope folderish object whose contents are the files in a particular filesystem folder/directory. It's like mounting a filesystem directory as a Zope folder. LocalFS has some kind of heuristics so that each file appears as a Zope object of appropriate type: File, Image, etc. -- Fred Yankowski fred@ontosys.com tel: +1.630.879.1312 OntoSys, Inc PGP keyID: 7B449345 fax: +1.630.879.1370 www.ontosys.com 38W242 Deerpath Rd, Batavia, IL 60510-9461, USA
On Tue, Feb 04, 2003 at 03:42:49PM -0600, Fred Yankowski wrote:
On Tue, Feb 04, 2003 at 01:16:30PM -0800, Chris Beaumont wrote:
I have a bunch of thumbnails that I would like to have access to in Zope. These thumbnails need to be accessible and replaceable through the filesystem.
The LocalFS product might suffice.
Yes, I use it all the time for similar purposes. It does have limitations in the ZMI: it *looks* like you can assign arbitrary properties to objects in teh LocalFS instance, but in fact these properties are discarded. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's MEGA BOTTLE CAP BAT! (random hero from isometric.spaceninja.com)
| Hello, | | I have a bunch of thumbnails that I would like to have access to in | Zope. These thumbnails need to be accessible and replaceable through the | filesystem. Ive looked at ExtFile and ExtImage and it seems as if these | products are designed to be usable to manage filesystem objects through | Zope. This isn't what I need, because they dont appear to show objects | that were not added through Zope. What I need is a way to show a | directory of images on the filesystem and test via DTML if an image with | a given filename exists,, LocalFS is your friend | | It would also be nice if size data on the image was available, but thats | not as important.. | LocalFS gives you a file extension -> Zope class mapper. Such you can use .gif (.png...) files like Zope Image objects. | The crucial thing is that the images need to be managed, changed, etc. | from outside of Zope via the filesystem.. You can do both... --Gilles
participants (5)
-
Chris Beaumont -
Chris Muldrow -
Fred Yankowski -
Gilles Lenfant -
Paul Winkler