[Zope] Zope redirecting manage_workspace?!
Edmund Goppelt
goppelt@goppelt.net
Thu, 4 Jan 2001 11:19:25 -0500
I've created a simple news item ZClass. When I attempt to manage a
News Item instance, I get the default view (or whatever happens to be
the first method listed in the ZClass 'Views' tab) instead of the
usual management interface with properties, undo, view etc.
Sniffing the http conversation shows that the folder's management
interface is calling manage_workspace on the news item as it should,
but that Zope is redirecting the web browser to index_html. Why is
this happening and how do I fix it?
Here's what happens when I click on the instance in the management screen:
GET /Z/testfolder/manage_main HTTP/1.0
Referer: http://www.xyz.org/Z/testfolder/manage_main
Connection: Keep-Alive
User-Agent: Mozilla/4.75 [en] (X11; U; Linux 2.2.16-3 i686)
Host: www.spado.org
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Authorization: Basic Z29wcGVsdDpibG9ydDJ1
Cookie: tree-s="eJyLjlZ3hAKX8kBbdR2F6NjYWABEjQYU"; tree-s="eJyLjlZ3hANPW/XYWAAtiQTP"; dtpref_rows="20"; dtpref_cols="75"
HTTP/1.0 200 OK
Server: Zope/Zope 2.2.2 (source release, python 1.5.2, linux2) ZServer/1.1b1
Date: Thu, 04 Jan 2001 16:04:01 GMT
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 12486
...Bunch of stuff deleted
<TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="16">
<INPUT TYPE="CHECKBOX" NAME="ids:list" VALUE="computer">
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<A HREF="computer/manage_workspace">
computer (My Computer Title) </A>
</TD>
</TR>
So my client asks Zope to manage_workspace the news item...
GET /Z/testfolder/computer/manage_workspace HTTP/1.0
Referer: http://www.xyz.org/Z/testfolder/manage_main
Connection: Keep-Alive
User-Agent: Mozilla/4.75 [en] (X11; U; Linux 2.2.16-3 i686)
Host: www.spado.org
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Authorization: Basic Z29wcGVsdDpibG9ydDJ1
Cookie: tree-s="eJyLjlZ3hAKX8kBbdR2F6NjYWABEjQYU"; tree-s="eJyLjlZ3hANPW/XYWAAtiQTP"; dtpref_rows="20"; dtpref_cols="75"
And Zope redirects! Why?
HTTP/1.0 302 Moved Temporarily
Server: Zope/Zope 2.2.2 (source release, python 1.5.2, linux2) ZServer/1.1b1
Date: Thu, 04 Jan 2001 16:04:06 GMT
Bobo-Exception-File: /usr/local/zope/2-2-2/lib/python/App/Management.py
Bobo-Exception-Type: Redirect
Connection: Keep-Alive
Location: http://www.spado.org/Z/testfolder/computer/index_html
Bobo-Exception-Value: http://www.spado.org/Z/testfolder/computer/index_html
Content-Length: 0
Bobo-Exception-Line: 152
GET /Z/testfolder/computer/index_html HTTP/1.0
Referer: http://www.xyz.org/Z/testfolder/manage_main
Connection: Keep-Alive
User-Agent: Mozilla/4.75 [en] (X11; U; Linux 2.2.16-3 i686)
Host: www.spado.org
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Authorization: Basic Z29wcGVsdDpibG9ydDJ1
Cookie: tree-s="eJyLjlZ3hANPW/XYWAAtiQTP"; dtpref_rows="20"; dtpref_cols="75"
HTTP/1.0 200 OK
Server: Zope/Zope 2.2.2 (source release, python 1.5.2, linux2) ZServer/1.1b1
Date: Thu, 04 Jan 2001 15:14:56 GMT
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 162
<html><head></head>
<big><big><b>Ed's Headline</b></big></big><br>
<b>Posted by goppelt </b>
<b>Saturday, 01/01/00</b>
<b>(computer)</b>
<br>
<p>
--
Ed Goppelt
SPADO President
http://www.spado.org