Re: [Zope] Zope redirecting manage_workspace?!

2001-01-05 Thread Dieter Maurer

Edmund Goppelt writes:
  ... manage_workspace redirects ...
It does this, if the current permissions does not allow
the use of any of the available tabs.

Are you sure, you set the permission mappings correctly?


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Zope redirecting manage_workspace?!

2001-01-04 Thread Edmund Goppelt

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

htmlhead/head
bigbigbEd's Headline/b/big/bigbr

bPosted by goppelt /b

   bSaturday, 01/01/00/b
   b(computer)/b
   br
   
p



-- 

Ed Goppelt
SPADO President
http://www.spado.org

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )