[CMF-checkins] SVN: CMF/branches/tseaver-pkg_resources/ Make .zpt suffix explicit, since Basket's PageTemplateResource doesn't add it.

Tres Seaver tseaver at palladion.com
Thu Nov 10 17:12:05 EST 2005


Log message for revision 40042:
  Make .zpt suffix explicit, since Basket's PageTemplateResource doesn't add it.

Changed:
  U   CMF/branches/tseaver-pkg_resources/CMFActionIcons/ActionIconsTool.py
  U   CMF/branches/tseaver-pkg_resources/CMFCalendar/CalendarTool.py
  U   CMF/branches/tseaver-pkg_resources/CMFDefault/factory.py
  U   CMF/branches/tseaver-pkg_resources/GenericSetup/tool.py

-=-
Modified: CMF/branches/tseaver-pkg_resources/CMFActionIcons/ActionIconsTool.py
===================================================================
--- CMF/branches/tseaver-pkg_resources/CMFActionIcons/ActionIconsTool.py	2005-11-10 22:09:40 UTC (rev 40041)
+++ CMF/branches/tseaver-pkg_resources/CMFActionIcons/ActionIconsTool.py	2005-11-10 22:12:05 UTC (rev 40042)
@@ -353,7 +353,8 @@
                       ) + SimpleItem.manage_options
 
     security.declareProtected( ManagePortal, 'manage_editActionIcons' )
-    manage_editActionIcons = PageTemplateResource( 'www/aitEdit', globals() )
+    manage_editActionIcons = PageTemplateResource( 'www/aitEdit.zpt'
+                                                 , globals() )
 
     security.declareProtected( ManagePortal, 'manage_addActionIcon' )
     def manage_addActionIcon( self

Modified: CMF/branches/tseaver-pkg_resources/CMFCalendar/CalendarTool.py
===================================================================
--- CMF/branches/tseaver-pkg_resources/CMFCalendar/CalendarTool.py	2005-11-10 22:09:40 UTC (rev 40041)
+++ CMF/branches/tseaver-pkg_resources/CMFCalendar/CalendarTool.py	2005-11-10 22:12:05 UTC (rev 40042)
@@ -48,13 +48,13 @@
     #   ZMI methods
     #
     security.declareProtected( ManagePortal, 'manage_overview' )
-    manage_overview = PageTemplateResource( 'www/explainCalendarTool'
+    manage_overview = PageTemplateResource( 'www/explainCalendarTool.zpt'
                                           , globals()
                                           , __name__='manage_overview'
                                           )
 
     security.declareProtected( ManagePortal, 'manage_configure' )
-    manage_configure = PageTemplateResource( 'www/configureCalendarTool'
+    manage_configure = PageTemplateResource( 'www/configureCalendarTool.zpt'
                                            , globals()
                                            , __name__='manage_configure'
                                            )

Modified: CMF/branches/tseaver-pkg_resources/CMFDefault/factory.py
===================================================================
--- CMF/branches/tseaver-pkg_resources/CMFDefault/factory.py	2005-11-10 22:09:40 UTC (rev 40041)
+++ CMF/branches/tseaver-pkg_resources/CMFDefault/factory.py	2005-11-10 22:12:05 UTC (rev 40042)
@@ -28,7 +28,7 @@
 def addConfiguredSiteForm(dispatcher):
     """ Wrap the PTF in 'dispatcher', including 'profile_registry' in options.
     """
-    wrapped = PageTemplateResource( 'www/siteAddForm', globals()
+    wrapped = PageTemplateResource( 'www/siteAddForm.zpt', globals()
                                   ).__of__( dispatcher )
 
     base_profiles = []

Modified: CMF/branches/tseaver-pkg_resources/GenericSetup/tool.py
===================================================================
--- CMF/branches/tseaver-pkg_resources/GenericSetup/tool.py	2005-11-10 22:09:40 UTC (rev 40041)
+++ CMF/branches/tseaver-pkg_resources/GenericSetup/tool.py	2005-11-10 22:12:05 UTC (rev 40042)
@@ -368,7 +368,7 @@
                      )
 
     security.declareProtected(ManagePortal, 'manage_tool')
-    manage_tool = PageTemplateResource('www/sutProperties', globals())
+    manage_tool = PageTemplateResource('www/sutProperties.zpt', globals())
 
     security.declareProtected(ManagePortal, 'manage_updateToolProperties')
     def manage_updateToolProperties(self, context_id, RESPONSE):
@@ -380,7 +380,8 @@
                          % (self.absolute_url(), 'Properties+updated.'))
 
     security.declareProtected(ManagePortal, 'manage_importSteps')
-    manage_importSteps = PageTemplateResource('www/sutImportSteps', globals())
+    manage_importSteps = PageTemplateResource('www/sutImportSteps.zpt',
+                                              globals())
 
     security.declareProtected(ManagePortal, 'manage_importSelectedSteps')
     def manage_importSelectedSteps(self,
@@ -416,7 +417,8 @@
                          % (self.absolute_url(), message))
 
     security.declareProtected(ManagePortal, 'manage_exportSteps')
-    manage_exportSteps = PageTemplateResource('www/sutExportSteps', globals())
+    manage_exportSteps = PageTemplateResource('www/sutExportSteps.zpt',
+                                              globals())
 
     security.declareProtected(ManagePortal, 'manage_exportSelectedSteps')
     def manage_exportSelectedSteps(self, ids, RESPONSE):
@@ -445,7 +447,8 @@
         return result['tarball']
 
     security.declareProtected(ManagePortal, 'manage_snapshots')
-    manage_snapshots = PageTemplateResource('www/sutSnapshots', globals())
+    manage_snapshots = PageTemplateResource('www/sutSnapshots.zpt',
+                                            globals())
 
     security.declareProtected(ManagePortal, 'listSnapshotInfo')
     def listSnapshotInfo(self):
@@ -524,7 +527,7 @@
                          % (self.absolute_url(), 'Snapshot+created.'))
 
     security.declareProtected(ManagePortal, 'manage_showDiff')
-    manage_showDiff = PageTemplateResource('www/sutCompare', globals())
+    manage_showDiff = PageTemplateResource('www/sutCompare.zpt', globals())
 
     def manage_downloadDiff(self,
                             lhs,



More information about the CMF-checkins mailing list