[Zope-Checkins] CVS: Zope/lib/python/App - Management.py:1.61.68.1

Andreas Jung andreas at andreas-jung.com
Mon Sep 29 08:22:20 EDT 2003


Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv24737/lib/python/App

Modified Files:
      Tag: Zope-2_7-branch
	Management.py 
Log Message:

     - Collector #1058: Several fixes for PropertySheets when used
       outside ZClasses


=== Zope/lib/python/App/Management.py 1.61 => 1.61.68.1 ===
--- 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:49 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