[ZPT] Newbie: Calling REQUEST.set from zpt ?

Gitte Wange gitte@mmmanager.org
Mon, 28 Jan 2002 19:28:07 +0100


> > >How do I call REQUEST.set() ?
> > >The problem is this:
> > >I have a pt which needs to display some data from the object in =
context.
> > >But this object can be of 2 metatypes; either it's a Clip or a
> > >Masterfile.
> > >In dtml I would do somthing like:
> > ><dtml-if "this().meta_type =3D=3D 'Media Manager Master File'">
> > >  <dtml-call "REQUEST.set('fileobj', this()">
> > ><dtml-else>
> > >  <dtml-call "REQUEST.set('fileobj', this().getMasterfile())">
> > ></dtml-if>
> > ><table>
> > >  <tr>
> > >   <td><dtml-var "fileobj.title"></td>
> > >  </tr>
> > ></table>
> > >
> > >But how to do this in ZPT ???
>=20
>=20
> Write a Python Script that does this and return the namespace.

Yeah I just figured that out :-))
But you helped me through some other small problems I had so thanx guys =
:-)

Greetings,
Gitte Wange