Commit f03de0b3 authored by Andreas Jung's avatar Andreas Jung

     - Collector #1058: Several fixes for PropertySheets when used
       outside ZClasses
parent 94603fc9
......@@ -13,9 +13,9 @@
"""Standard management interface support
$Id: Management.py,v 1.61 2002/08/14 21:31:40 mj Exp $"""
$Id: Management.py,v 1.62 2003/09/29 12:21:41 andreasjung Exp $"""
__version__='$Revision: 1.61 $'[11:-2]
__version__='$Revision: 1.62 $'[11:-2]
import sys, Globals, ExtensionClass, urllib
from Dialogs import MessageDialog
......@@ -75,9 +75,11 @@ class Tabs(ExtensionClass.Base):
raise Unauthorized, (
'You are not authorized to view this object.')
if m.find('/'):
raise 'Redirect', (
"%s/%s" % (REQUEST['URL1'], m))
if m.find('/') >= 0:
# DM: let absolute URLs work (as generated by
# "OFS.PropertySheets.PropertySheets.manage_options")
prefix= m.startswith('/') and REQUEST['BASE0'] or REQUEST['URL1']
raise 'Redirect', ( "%s/%s" % (prefix, m))
return getattr(self, m)(self, REQUEST)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment