[Zope-dev] REQUEST placement in a file
Andrew Edmondson
a.edmondson@eris.dera.gov.uk
Tue, 25 Jan 2000 12:12:56 +0000
The following code fails:
<dtml-with "manage_addProduct['product
<dtml-call "REQUEST.set('id','S'+Immutable_id)">
<dtml-call "REQUEST.set('Immutable_id','S'+Immutable_id)">
<dtml-call "REQUEST.set('Related_Discussion','S'+ Related_Discussion)">
<dtml-call "my_Document_add(_.None,_)">
</dtml-with>
with the error:
ValueError: <HTML><HEAD><TITLE>Docs</TITLE></HEAD> <BODY BGCOLOR=00ccff> <center>ZOPE CLIENT ON Rameus</center> <TABLE BORDER="0" WIDTH="100%"> <TR VALIGN="TOP"> <TD WIDTH="10%" ALIGN="CENTER"> <IMG SRC="http://localhost/Zope/fastcgi/p_/ZButton" ALT="Zope"> </TD (File: /usr/local/ZOPE2.1.2/lib/python/OFS/DTMLMethod.py Line: 370)
500 Internal Server Error for http://localhost/Zope/fastcgi/RAF5/Docs/add_replicatedDocument
(This method is called through the ZPublisher Client, from a python script,
which is why there isn't a more informative error message...)
However, the following code runs fine:
<dtml-with "manage_addProduct['product
<dtml-var REQUEST>
<dtml-call "REQUEST.set('id','S'+Immutable_id)">
<dtml-call "REQUEST.set('Immutable_id','S'+Immutable_id)">
<dtml-call "REQUEST.set('Related_Discussion','S'+ Related_Discussion)">
<dtml-call "my_Document_add(_.None,_)">
<dtml-var REQUEST>
</dtml-with>
Can anyone explain the problem here?
-Ed