[Zope] =?iso-8859-1?q?R=E9f?= =?us-ascii?q?=2E_=3A_?= =?us-ascii?q?Re?= =?us-ascii?q?=3A_[?= =?us-ascii?q?Zope?= =?us-ascii?q?]_?= =?us-ascii?q?a?= redirect of an url in Python =?us-ascii?q?=3A_[?= =?us-ascii?q?Zope?= =?us-ascii?q?]_?= =?us-ascii?q?a?= redirect of an url in Python

dsergent@imexpert.com dsergent@imexpert.com
Fri, 1 Sep 2000 11:11:06 +0200


This is a multipart message in MIME format.
--=_alternative 0032C838C125694D_=
Content-Type: text/plain; charset="us-ascii"

Thks for your answer, but it's not the good solution :




Error Type: KeyError
Error Value: redirect

Troubleshooting Suggestions
This resource may be trying to reference a nonexistent object or variable redirect. 
The URL may be incorrect. 
The parameters passed to this resource may be incorrect. 
A resource that this resource relies on may be encountering an error. 
For more detailed information about the error, please refer to the HTML 
source for this page. 
If the error persists please contact the site maintainer. Thank you for 
your patience. 


Traceback (innermost last):
  File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 
222, in publish_module
  File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 
187, in publish
  File C:\Program Files\ZopeServer\lib\python\Zope\__init__.py, line 221, 
in zpublisher_exception_hook
    (Object: Traversable)
  File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 
171, in publish
  File C:\Program Files\ZopeServer\lib\python\ZPublisher\mapply.py, line 
160, in mapply
    (Object: manage_defined_roles)
  File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 
112, in call_object
    (Object: manage_defined_roles)
  File C:\Program Files\ZopeServer\lib\python\AccessControl\Role.py, line 
478, in manage_defined_roles
    (Object: Traversable)
  File C:\Program Files\ZopeServer\lib\python\AccessControl\Role.py, line 
500, in _addRole
    (Object: Traversable)
  File C:\Program Files\ZopeServer\lib\python\ZPublisher\HTTPRequest.py, 
line 810, in __getitem__
KeyError: (see above)





try to use REQUEST.redirect(url)


----- Original Message ----- 
From:  dsergent@imexpert.com 
To: zope@zope.org 
Sent: Friday, September 01, 2000 1:42  AM
Subject: [Zope] a redirect of an url in  Python


I want to redirect my current  url to another in Python. I've tried return 
REQUEST.get('url'), but It only  writes the url on the screen. 

Can  anyone help me ????? 

thks a  lot 
David Sergent 
A french zoppeur :o)


--=_alternative 0032C838C125694D_=
Content-Type: text/html; charset="us-ascii"




<br><font size=2 face="sans-serif">Thks for your answer, but it's not the good solution :</font>
<br>
<table>
<tr>
<td><font size=2 face="Times New Roman"><br>
</font>
<table>
<tr valign=top>
<td>
<table width=100%>
<tr valign=top>
<td width=100%><font size=2 face="Times New Roman"><b>Error Type: KeyError<br>
Error Value: redirect</b></font>
<p>
<hr noshade>
<p><font size=2 face="Times New Roman">Troubleshooting Suggestions</font>
<ul>
<li><font size=3 face="Times New Roman">This resource may be trying to reference a nonexistent object or variable <b>redirect</b>. </font>
<li><font size=3 face="Times New Roman">The URL may be incorrect. </font>
<li><font size=3 face="Times New Roman">The parameters passed to this resource may be incorrect. </font>
<li><font size=3 face="Times New Roman">A resource that this resource relies on may be encountering an error. </font>
<p><font size=2 face="Times New Roman">For more detailed information about the error, please refer to the HTML source for this page. </font>
<p><font size=2 face="Times New Roman">If the error persists please contact the site maintainer. Thank you for your patience. </font></ul></table>
<br></table>
<br>
<p><font size=3 face="Courier New">Traceback (innermost last):<br>
 &nbsp;File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 222, in publish_module<br>
 &nbsp;File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 187, in publish<br>
 &nbsp;File C:\Program Files\ZopeServer\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook<br>
 &nbsp; &nbsp;(Object: Traversable)<br>
 &nbsp;File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 171, in publish<br>
 &nbsp;File C:\Program Files\ZopeServer\lib\python\ZPublisher\mapply.py, line 160, in mapply<br>
 &nbsp; &nbsp;(Object: manage_defined_roles)<br>
 &nbsp;File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 112, in call_object<br>
 &nbsp; &nbsp;(Object: manage_defined_roles)<br>
 &nbsp;File C:\Program Files\ZopeServer\lib\python\AccessControl\Role.py, line 478, in manage_defined_roles<br>
 &nbsp; &nbsp;(Object: Traversable)<br>
 &nbsp;File C:\Program Files\ZopeServer\lib\python\AccessControl\Role.py, line 500, in _addRole<br>
 &nbsp; &nbsp;(Object: Traversable)<br>
 &nbsp;File C:\Program Files\ZopeServer\lib\python\ZPublisher\HTTPRequest.py, line 810, in __getitem__<br>
KeyError: (see above)<br>
<br>
</font></table>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">try to use REQUEST.redirect(url)</font>
<br>
<br>
<br><font size=3 face="sans-serif">----- Original Message ----- </font>
<br><font size=3 face="sans-serif"><b>From:</b> &nbsp;</font><a href=mailto:dsergent@imexpert.com><font size=3 color=blue face="sans-serif"><u>dsergent@imexpert.com</u></font></a><font size=3 face="sans-serif"> </font>
<br><font size=3 face="sans-serif"><b>To:</b> </font><a href=mailto:zope@zope.org><font size=3 color=blue face="sans-serif"><u>zope@zope.org</u></font></a><font size=3 face="sans-serif"> </font>
<br><font size=3 face="sans-serif"><b>Sent:</b> Friday, September 01, 2000 1:42 &nbsp;AM</font>
<br><font size=3 face="sans-serif"><b>Subject:</b> [Zope] a redirect of an url in &nbsp;Python</font>
<br>
<br>
<br><font size=2 face="sans-serif">I want to redirect my current &nbsp;url to another in Python. I've tried return REQUEST.get('url'), but It only &nbsp;writes the url on the screen.</font><font size=3 face="sans-serif"> </font>
<br>
<br><font size=2 face="sans-serif">Can &nbsp;anyone help me ?????</font><font size=3 face="sans-serif"> </font>
<br>
<br><font size=2 face="sans-serif">thks a &nbsp;lot</font><font size=3 face="sans-serif"> </font>
<br><font size=2 face="sans-serif">David Sergent</font><font size=3 face="sans-serif"> </font>
<br><font size=2 face="sans-serif">A french zoppeur :o)</font>
<br>
<br>
--=_alternative 0032C838C125694D_=--