[Zope] in/let not working as expected
Dieter Maurer
dieter@handshake.de
Fri, 22 Jun 2001 23:47:03 +0200 (CEST)
alan runyan writes:
> <dtml-in objectValues skip_unauthorized>
> <dtml-let obj=sequence-item>
> <dtml-var getId>
> </dtml-let>
> </dtml-in>
>
> try this in your / and it will error on the standard_error_message (thats
> what teh Error Type business is about).
Whenever you are using a "name" attribute to a DTML tag,
the corresponding object is rendered (if it is callable).
Rendering a DTML object (usually) returns a string
which does not have a "getId".
"name" attributes are
* attributes "name="
* the first attribute to most DTML tags, if it is not
explicitly named and not included in "..."
* the attribute of "dtml-let", provided the value is
not enclosed in "..."
Use "<dmtl-let obj="_.getitem('sequence-item')">".
More info
URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html
Dieter