[Zope] DTML parameter to Python script

Dragos Chirila d.chirila at bucarest.finsiel.ro
Thu Oct 2 12:55:46 EDT 2003


Hi

<dtml-in "admin.objectIds('Local Directory')">
    <img src="/misc_/OFSP/Folder_icon.gif"> <a href=<dtml-var
expr="setDirectory('<&dtml-sequence-item>')">> <dtml-var sequence-item></a>
<br>
</dtml-in>

in a python expression you cannot have dtml tags !!!

instead, write like this:
 .. expr="setDirectory(_['sequence-item']) ...

Dragos


----- Original Message ----- 
From: "Michael Bleijerveld" <michael at bleijerveld.nl>
To: <zope at zope.org>
Sent: Thursday, October 02, 2003 5:46 PM
Subject: Re: [Zope] DTML parameter to Python script


> I got the same result.
> 
> Michael
> 
> ----- Original Message ----- 
> From: "Dylan Reinhardt" <zope at dylanreinhardt.com>
> To: "Michael Bleijerveld" <michael at bleijerveld.nl>
> Cc: "Zope Users" <zope at zope.org>
> Sent: Thursday, October 02, 2003 5:29 PM
> Subject: Re: [Zope] DTML parameter to Python script
> 
> 
> > On Thu, 2003-10-02 at 07:26, Michael Bleijerveld wrote:
> > > Hi,
> > > 
> > > In the following DTML document I am trying to give the parameter
> > > 'dtml-sequence-item''to the setDirectory python script.
> > > This parameter doesn't return the right value. Instead it returns
> > > '<&dtml-sequence-item>'.
> > 
> > Instead of:
> > 
> >     '<&dtml-sequence-item>'
> > 
> > try:
> > 
> >     '&dtml-sequence-item;'
> > 
> > HTH,
> > 
> > Dylan
> > 
> > 
> > _______________________________________________
> > Zope maillist  -  Zope at zope.org
> > http://mail.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists - 
> >  http://mail.zope.org/mailman/listinfo/zope-announce
> >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > 
> > 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 




More information about the Zope mailing list