[Zope] DTML2ZPT

Dieter Maurer dieter at handshake.de
Tue May 25 14:11:57 EDT 2004


Maciej Lopacinski wrote at 2004-5-25 12:55 +0200:
> ...
><dtml-call "REQUEST.set('img_url', images.absolute_url())">
><dtml-call "REQUEST.set('image_db_url', image_db.absolute_url())">
><dtml-call session_init>
> ...
>Questions:
>1. How should it look in ZPT?

In ZPT, you do not have a large implicit namespace but only a
small one with a few predefined variables and whatever
variables you defined.

Often you use "here.images" or "request/file" where
in DTML you just used "images" and "file".

>2. In folowing scripts I use <dtml-call "REQUEST.get('img_url')"> or
>something like this, how should I use it now in ZPT?

	   "request.get(...)"

-- 
Dieter



More information about the Zope mailing list