[Zope] Including Script-Generated String in Method Call
Emmanuel Viennet
emmanuel.viennet@lipn.univ-paris13.fr
Sun, 30 Dec 2001 14:22:11 +0100
Dan Shafer wrote:
>
>
> Thanks. That was informative. But it doesn't seem to work. I get an
> AttributeError on __getslice__. The document I'm trying to render and
> the Python script that generates the string of the URL are both in the
> same folder as the page where this error occurs.
>
> I'm stumped.
So am i :-)
Is your document is a DTML Document ?
>
> Maybe I need to make my Python script an external method?
No, I don't think so.
Any method returning a *string* will do the job.
Did you try replacing yopur methoid call by a string ?
that is, replacing
<dtml-var "_.render(_.getattr(PARENTS[0], pagetoget ))">
by
<dtml-var "_.render(_.getattr(PARENTS[0], "the_name_of_your_doc" ))">
?
--
Emmanuel Viennet
Dpt GTR - IUT de Villetaneuse - Universite Paris-Nord
93430 Villetaneuse - France
http://www-gtr.iutv.univ-paris13.fr/