I have a directory on a network drive with employees images. I like to produce a page with everyone's picture that I can click on and get more information on that employee. I am using LocalFS to be able to see the directory that contains the images, I am naming the Local Filesystem object "myImages". In order to get the images I have a dtml method with the code: <dtml-in expr="myImages.objectValues('Image')"> That code returns the error that objectValues has not been defined. Can I do this with LocalFS? and can I treat a localFs object just as another zope folder? Thanks Hara
Dilley, Hara wrote:
[...] to get the images I have a dtml method with the code: <dtml-in expr="myImages.objectValues('Image')"> That code returns the error that objectValues has not been defined. Can I do this with LocalFS? and can I treat a localFs object just as another zope folder?
Googling a bit brings up this Howto: http://www.zope.org/Members/jfarr/HowTo/DTML_with_LocalFS - Michael Bernstein
Dilley, Hara wrote at 2003-12-8 09:39 -0800:
I have a directory on a network drive with employees images. I like to produce a page with everyone's picture that I can click on and get more information on that employee. I am using LocalFS to be able to see the directory that contains the images, I am naming the Local Filesystem object "myImages". In order to get the images I have a dtml method with the code: <dtml-in expr="myImages.objectValues('Image')"> That code returns the error that objectValues has not been defined. Can I do this with LocalFS? and can I treat a localFs object just as another zope folder?
I thinks, "LocalFS" has a different set of "*{Ids|Values|Items}" methods ("fileValues"?). -- Dieter
participants (3)
-
Dieter Maurer -
Dilley, Hara -
Michael Bernstein