[Zope] <dtml-with> / <dtml-in> bug or mistake?

Andy McKay andy@agmweb.ca
Thu, 27 Jun 2002 07:49:46 -0700


> When I instead try it like
> this (with <dtml-in> or <dtml-with>) with a folder which has a number in
> the id field, I recieve a syntax error!

Everything in the double quotes is Python and in Python objects cannot begin
with a number, in Zope they can. To get around this you can do:

<dtml-with projectxy><dtml-with 04templates><dtml-with concepts>
  <dtml-var template>
</dtml-with></dtml-with></dtml-with>

or

<dtml-with "restrictedTraverse('projectxy.04templates.concepts')">
  <dtml-var template>
</dtml-with>

Cheers.
--
  Andy McKay