Use a pythonmethod with the traverse_subpath argument... Anthony
"Ian Sparks" wrote It seems strange to me that SQLMethods are traversable out of the box and "normal" DTML methods are not.
It seems to me that traversable DTML methods would be useful (to me this means DTML Methods with parameters).
Is this something that might make it into Zope in the future or am I missing something important which means that they simply arn't necessary?
- Ian Sparks.
_______________________________________________ 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 )
-- Anthony Baxter <anthony@interlink.com.au> It's never too late to have a happy childhood.
Use a pythonmethod with the traverse_subpath argument... <<
Thanks for the advice Anthony, this has been suggested to my by others. Could you point me to some Docs or Howto on this subject? My view is that you shouldn't have to go to Python to make this happen (though I am glad that you can!) and that DTML Methods should be traversable out of the box. - Ian. ----- Original Message ----- From: "Anthony Baxter" <anthony@interlink.com.au> To: "Ian Sparks" <isparks@wmute.u-net.com> Cc: <zope@zope.org> Sent: Sunday, June 11, 2000 4:14 AM Subject: Re: [Zope] Traversable DTML methods Use a pythonmethod with the traverse_subpath argument... Anthony
"Ian Sparks" wrote It seems strange to me that SQLMethods are traversable out of the box and "normal" DTML methods are not.
It seems to me that traversable DTML methods would be useful (to me this means DTML Methods with parameters).
Is this something that might make it into Zope in the future or am I missing something important which means that they simply arn't necessary?
- Ian Sparks.
_______________________________________________ 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 )
-- Anthony Baxter <anthony@interlink.com.au> It's never too late to have a happy childhood. _______________________________________________ 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 )
----- Original Message ----- From: "Ian Sparks" <isparks@wmute.u-net.com> To: "Anthony Baxter" <anthony@interlink.com.au> Cc: <zope@zope.org> Sent: Sunday, June 11, 2000 9:18 AM Subject: Re: [Zope] Traversable DTML methods
Use a pythonmethod with the traverse_subpath argument... <<
Thanks for the advice Anthony, this has been suggested to my by others. Could you point me to some Docs or Howto on this subject?
My view is that you shouldn't have to go to Python to make this happen (though I am glad that you can!) and that DTML Methods should be traversable out of the box.
Hmm... what does it mean, exactly, to "traverse a DTML method"? DTML Methods don't have subobjects, so it seems like you're basically trying to look up other objects or information via information passed in the URL. That seems like the kind of program logic that is much cleaner in python and that people are trying to keep out of DTML. DTML really does start getting ugly and hairy when you try to put complex logic in it. Kevin
participants (3)
-
Anthony Baxter -
Ian Sparks -
Kevin Dangoor