is there a dtml-with convenience tag ?? or equivalent syntax
Is there a one liner that looks something like this? <dtml-call "foo.bar(something)"> **see below ed.-please dont take offense to my simple thinking I am constantly writing "<dtml-with foo><dtml-var bar></dtml-with>" just to get one(1) method from an object. As I am getting into content categories using zClasses, I am now writing many... **<dtml-with foo> --usually the category/folder with zClasses <dtml-with bar> --the specific zClass <dtml-var something> --the method to execute from the specific zclass </dtml-with> </dtml-with> I am searching for a simpler way to do this... Thanks for feedback, (or reality) Trevor
Trevor Toenjes writes:
Is there a one liner that looks something like this? <dtml-call "foo.bar(something)"> **see below Yes.
Do you read background information? The Zope book or <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> may answer some of your questions, as the above one: <dtml-call "foo.bar(_.None,_,something)"> if "foo.bar" is a DTML object.... "something" must be a (possibly empty) sequence of keyword arguments... Dieter
participants (2)
-
Dieter Maurer -
Trevor Toenjes