Re: [Zope-dev] Setting vars in expression eval() namespace

2001-02-22 Thread Dieter Maurer
Julio Maia writes: > I'm trying to create a tag to evaluate the expression passed to it, adding in the >expression eval namespace a variable that contains the result of dtml processing of >the tag's block. For instance, the following construct: > > >some text > > > would invoke

Re: [Zope-dev] Setting vars in expression eval() namespace

2001-02-22 Thread Steve Alexander
Julio Maia wrote: > > This is not going to be handy once the block is composed by a large dtml > block. I wonder if dtml-var shouldn't support the syntax I've described > above. I suggest instead using a PythonScript, and using the DTML class that you can import from the Products.PythonScripts.

Re: [Zope-dev] Setting vars in expression eval() namespace

2001-02-22 Thread Julio Maia
On Wed, Feb 21, 2001 at 10:24:57PM +, Steve Alexander wrote: > Julio Maia wrote: > > > Hi, > > > > I'm trying to create a tag to evaluate the expression passed to it, > > adding in the expression eval namespace a variable that contains > > the result of dtml processing of the tag's block

Re: [Zope-dev] Setting vars in expression eval() namespace

2001-02-22 Thread Julio Maia
On Wed, Feb 21, 2001 at 10:53:54PM +, Steve Alexander wrote: > Julio Maia wrote: > > > > > This is not going to be handy once the block is composed by a large dtml > > block. I wonder if dtml-var shouldn't support the syntax I've described > > above. > > I suggest instead using a PythonScri

Re: [Zope-dev] Setting vars in expression eval() namespace

2001-02-22 Thread Julio Maia
On Wed, Feb 21, 2001 at 10:53:54PM +, Steve Alexander wrote: > Julio Maia wrote: > > > > > This is not going to be handy once the block is composed by a large dtml > > block. I wonder if dtml-var shouldn't support the syntax I've described > > above. > > I suggest instead using a PythonScri

Re: [Zope-dev] Setting vars in expression eval() namespace

2001-02-22 Thread Steve Alexander
Julio Maia wrote: > Hi, > > I'm trying to create a tag to evaluate the expression passed to it, > adding in the expression eval namespace a variable that contains > the result of dtml processing of the tag's block. For instance, the > following construct: > > > some text > > > w

[Zope-dev] Setting vars in expression eval() namespace

2001-02-21 Thread Julio Maia
Hi, I'm trying to create a tag to evaluate the expression passed to it, adding in the expression eval namespace a variable that contains the result of dtml processing of the tag's block. For instance, the following construct: some text would invoke the expression "foo(a=1)" with a varia