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

Gitte Wange gitte@mmmanager.org
28 Jan 2002 16:56:40 +0100


I'm new into zpt but it looks like a very nice way in designing skins
for Zope.
I have understood the basics and have already created a new skin for
Now I have run into a small problem I can't seem to read about in any of
the howto's I have been reading:
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
In dtml I would do somthing like:
<dtml-if "this().meta_type == 'Media Manager Master File'">
 <dtml-call "REQUEST.set('fileobj', this()">
 <dtml-call "REQUEST.set('fileobj', this().getMasterfile())">
  <td><dtml-var "fileobj.title"></td>

But how to do this in ZPT ???

Gitte Wange