[Zope] Strange behavior of document_src
Aleksander Salwa
ololo@zeus.polsl.gliwice.pl
Wed, 17 Jan 2001 07:28:05 +0100 (CET)
On Tue, 16 Jan 2001, Sergio Fogel wrote:
> I want to display the source of a DTML document inside a textarea (as in
> Zope's DTML editing screen).
>
> If I do: <dtml-var "doc.document_src()" >
> It works OK, but if I try
> <dtml-var "_['doc'].document_src()" >
> it tries to evaluate doc, and gives me an error (some of the vars are not
> defined in this context).
It is behavior of _[....], not of document_src.
_[....] syntax causes rendering of selected object.
ololo@zeus.polsl.gliwice.pl, oleks@helper.pl
/--------------------------------------\
| `long long long' is too long for GCC |
\--------------------------------------/