[CMF-checkins] CVS: CMF/CMFCore - DirectoryView.py:1.16.2.1

Tres Seaver tseaver@zope.com
Fri, 4 Jan 2002 22:05:59 -0500


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv15008/CMFCore

Modified Files:
      Tag: CMF-1_2-branch
	DirectoryView.py 
Log Message:


 - Added 'CMFDefault.Upgrade.upgrade_decor_skins' external method to
   convert existing sites which had installed skin directories from the
   now-deprecated 'CMFDecor' product (Tracker #434).  Added note
   explaining the issue, and the workaround, to 'ISSUES.txt'.


=== CMF/CMFCore/DirectoryView.py 1.16 => 1.16.2.1 ===
     security.declareProtected(ManagePortal,
                               'manage_properties')
-    def manage_properties( self, dirpath, REQUEST ):
+    def manage_properties( self, dirpath, REQUEST=None ):
         """
             Update the directory path of the DV.
         """
         self.__dict__['_real']._dirpath = dirpath
-        REQUEST['RESPONSE'].redirect( '%s/manage_propertiesForm'
-                                    % self.absolute_url() )
+        if REQUEST is not None:
+            REQUEST['RESPONSE'].redirect( '%s/manage_propertiesForm'
+                                        % self.absolute_url() )
     
     security.declareProtected(AccessContentsInformation,
                               'getCustomizableObject')