<untested> <dtml-in "PARENTS[0].objectItems(['ccDocClass'])" size=10 start=qs sort=sort_key> </untested> ??? ----- Original Message ----- From: "Jean Jordaan" <Jean@mosaicsoftware.com> To: <zope@zope.org> Cc: "RC Compaan (E-mail)" <roche@up-front.co.za> Sent: Wednesday, August 23, 2000 2:52 PM Subject: [Zope] <dtml-let ..> method </dtml-let>
Hi all
The answer to my previous question makes this one occur to me: if <dtml-var id> in a method refers to the containing document's id, does 'myMethod' get to see 'myVariable'?::
<dtml-let myVariable='Beep'> <dtml-var myMethod> </dtml-let>
Testing .. yes, it does! Cool. So why does this::
<dtml-in "PARENTS[0].objectItems(['ccDocClass'])" size=10 start=qs sort=<dtml-var sort_key>>
give::
Invalid attribute name, "sort_key", for tag <dtml-in "PARENTS[0].objectItems (['ccDocClass'])" size=10 start=qs sort=<dtml-var sort_key>, on line 18 of docsByTitle
How do I get 'sort_key' in there?
-- Jean Jordaan -- technical writer -- Mosaic Software -- Zope 2.1.6 on WinNT and W2K
_______________________________________________ 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 )