Kevin Said :
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. <<
Dieter Said :
Your DTML Methods have (keyword) parameters.
From DTML: "<method>(_.None,_,param1=value1, param2=value2, ....)" From HTML: "<URL to method>?param1=value1¶m2=value2&...." everything after "?" is URL(plus)encoded. <<
Dieter is right, DTML methods can get parameters from the URL but they don't do it in the same way as SQLMethods and that, to answer Kevins question, is what I mean by making DTML Methods "traversable" (apologies if my terminology is off). I'd like to be able to pass a parameter to a "members" DTML method with a syntax like : www.mysite.com/members/ian which is much nicer than : www.mysite.com/members?user=ian which is what Dieter suggests.
From my Zope-newbie perspective I don't see that allowing parameters to DTMLMethods, framed as part of the URL is any more complex than what goes on with SQLMethods but I admit this may be because I have not grasped the Zen of Zope.
- Ian Sparks. ----- Original Message ----- From: "Dieter Maurer" <dieter@handshake.de> To: "Ian Sparks" <isparks@wmute.u-net.com> Cc: <zope@zope.org> Sent: Sunday, June 11, 2000 7:03 PM Subject: Re: [Zope] Traversable DTML methods Ian Sparks writes:
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). Your DTML Methods have (keyword) parameters.
From DTML: "<method>(_.None,_,param1=value1, param2=value2, ....)" From HTML: "<URL to method>?param1=value1¶m2=value2&...." everything after "?" is URL(plus)encoded.
Dieter _______________________________________________ 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 )