[Zope-Checkins] CVS: Zope/lib/python/App - Management.py:1.62
Andreas Jung
andreas at andreas-jung.com
Mon Sep 29 08:21:42 EDT 2003
Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv24819
Modified Files:
Management.py
Log Message:
- Collector #1058: Several fixes for PropertySheets when used
outside ZClasses
=== Zope/lib/python/App/Management.py 1.61 => 1.62 ===
--- Zope/lib/python/App/Management.py:1.61 Wed Aug 14 17:31:40 2002
+++ Zope/lib/python/App/Management.py Mon Sep 29 08:21:41 2003
@@ -75,9 +75,11 @@
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)
More information about the Zope-Checkins
mailing list