[Zope] Re: dtml-with and referencing current object properties (?)
Martijn Pieters
mj@antraciet.nl
Fri, 15 Oct 1999 17:40:43 +0200
At 17:32 15/10/99 , Samu Mielonen wrote:
>From: Martijn Pieters [mailto:mj@antraciet.nl]
>
> > <dtml-let month="ZopeTime().month()" year="ZopeTime().year()">
> > .. here you can use month and year in your code ..
> > </dtml-let>
>
>Yup. After that code:
>
> <dtml-var year> is 1999
>and
> <dml-var month> is 10
>
>but
>
> <dtml-with "_[year]">
>
>inside the above <dtml-let> statement gives me:
>
> Error Type: SystemError
> Error Value: bad argument to internal function
Hmm.. look into the source of the errorpage for a traceback, we might need
it. In the meantime, try this:
<dtml-with "_[_.str(year)]">
But that is just a guess.
--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------