[CMF-checkins] CVS: CMF/CMFDefault - SyndicationTool.py:1.18.20.1

Sidnei da Silva sidnei at x3ng.com.br
Tue Dec 23 14:16:15 EST 2003


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv29809/CMFDefault

Modified Files:
      Tag: CMF-1_4-branch
	SyndicationTool.py 
Log Message:
Missing import


=== CMF/CMFDefault/SyndicationTool.py 1.18 => 1.18.20.1 ===
--- CMF/CMFDefault/SyndicationTool.py:1.18	Thu Feb 13 02:52:03 2003
+++ CMF/CMFDefault/SyndicationTool.py	Tue Dec 23 14:16:14 2003
@@ -17,8 +17,8 @@
 
 import os
 
-from Globals import HTMLFile, package_home, InitializeClass 
-from AccessControl import ClassSecurityInfo, SecurityManagement
+from Globals import HTMLFile, package_home, InitializeClass
+from AccessControl import ClassSecurityInfo, SecurityManagement, Unauthorized
 from Acquisition import aq_base, aq_inner, aq_parent
 from DateTime import DateTime
 from OFS.SimpleItem import SimpleItem
@@ -53,7 +53,7 @@
                   , action=Expression(
                         text='string: ${folder_url}/synPropertiesForm')
                   , condition=Expression(
-                        text='python: folder is object') 
+                        text='python: folder is object')
                   , permissions=(ManageProperties,)
                   , category='folder'
                   , visible=1
@@ -69,7 +69,7 @@
     max_items = 15
 
     security = ClassSecurityInfo()
-    
+
     #ZMI Methods
     manage_options = ( ActionProviderBase.manage_options
                      + ( { 'label'  : 'Overview'
@@ -103,10 +103,9 @@
 
     security.declareProtected(ManagePortal, 'policiesForm')
     policiesForm = HTMLFile('synPolicies', _dtmldir)
-
     security.declareProtected(ManagePortal, 'reportForm')
     reportForm = HTMLFile('synReports', _dtmldir)
-   
+
     security.declareProtected(ManagePortal, 'editProperties')
     def editProperties( self
                       , updatePeriod=None
@@ -331,13 +330,13 @@
             return syInfo.syUpdateFrequency
         else:
             return 'Syndication is not Allowed'
-     
+
     security.declarePublic('getUpdateBase')
     def getUpdateBase(self, obj=None):
         """
         Return the base date to be used with the update frequency
         and the update period to calculate a publishing schedule.
-        
+
         Note:  I'm not sure what's best here, creation date, last
         modified date (of the folder being syndicated) or some
         arbitrary date.  For now, I'm going to build a updateBase




More information about the CMF-checkins mailing list