How do you access an individual object in a LocalFS? By that, I mean: If I wanted the last_mod time of any Zope object, I could say <dtml-var "object.subobject.bobobase_modification_time">. However, if you try to do the same thing with a LocalFS object, i.e. <dtml-var "localfs_object.localfs_subobject.bobobase_modification_time">, you get the error NameError: localfs_subobject This leads me to believe that LocalFS subobjects are not really objects. But then how does the Zope management interface deal with them, and how can I?
They are real objects, just in a different sense. The easiest way to figure it out is too look at the dtml that comes in the LocalFS source. For example to get a listing of LocalFS folder instead of: objectIds() try fileItems() -- Andy McKay, Developer. ActiveState. ----- Original Message ----- From: "Leichtman, David J" <code@ou.edu> To: <zope@zope.org> Sent: Monday, December 11, 2000 2:54 PM Subject: [Zope] LocalFS question How do you access an individual object in a LocalFS? By that, I mean: If I wanted the last_mod time of any Zope object, I could say <dtml-var "object.subobject.bobobase_modification_time">. However, if you try to do the same thing with a LocalFS object, i.e. <dtml-var "localfs_object.localfs_subobject.bobobase_modification_time">, you get the error NameError: localfs_subobject This leads me to believe that LocalFS subobjects are not really objects. But then how does the Zope management interface deal with them, and how can I? _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
See the how-to: http://www.zope.org/Members/jfarr/Products/LocalFS/HowTo/DTML_with_LocalFS --jfarr ----- Original Message ----- From: "Leichtman, David J" <code@ou.edu> To: <zope@zope.org> Sent: Monday, December 11, 2000 2:54 PM Subject: [Zope] LocalFS question
How do you access an individual object in a LocalFS? By that, I mean:
If I wanted the last_mod time of any Zope object, I could say <dtml-var "object.subobject.bobobase_modification_time">. However, if you try to do the same thing with a LocalFS object, i.e. <dtml-var "localfs_object.localfs_subobject.bobobase_modification_time">, you get the error NameError: localfs_subobject This leads me to believe that LocalFS subobjects are not really objects. But then how does the Zope management interface deal with them, and how can I?
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Mon, 11 Dec 2000, Leichtman, David J wrote:
How do you access an individual object in a LocalFS? By that, I mean: [...] <dtml-var "localfs_object.localfs_subobject.bobobase_modification_time">, you get the error NameError: localfs_subobject
<dtml-var "localFSinstance['directory']['subdir']['file'].... ololo@zeus.polsl.gliwice.pl /--------------------------------------\ | `long long long' is too long for GCC | \--------------------------------------/
participants (4)
-
Aleksander Salwa -
Andy McKay -
Jonothan Farr -
Leichtman, David J