Re: [Zope] Strange behavior of document_src

2001-01-16 Thread Aleksander Salwa

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: 
> It works OK, but if I try
> 
> 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.


[EMAIL PROTECTED], [EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/




___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] Strange behavior of document_src

2001-01-16 Thread Sergio Fogel

I want to display the source of a DTML document inside a textarea (as in
Zope's DTML editing screen).

If I do: 
It works OK, but if I try

it tries to evaluate doc, and gives me an error (some of the vars are not
defined in this context).

Am I missing something?

Sergio



Sergio Fogel


___
Zope maillist  -  [EMAIL PROTECTED]
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 )