[ZPT] Newbie: Calling REQUEST.set from zpt ?
Jeff Peterson
jpeterso@rangebroadband.com
Mon, 28 Jan 2002 12:03:19 -0600
> >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 == '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 ???
Write a Python Script that does this and return the namespace.
--
Jeffrey D. Peterson
Webmaster & Resident Standards Warrior
"The Trouble with doing anything right the first time is that nobody
appreciates how difficult it was."