[CMF-checkins] CVS: Products/CMFCalendar - CalendarTool.py:1.16

Stefan H. Holek stefan at epy.co.at
Sat Aug 7 11:14:28 EDT 2004


Update of /cvs-repository/Products/CMFCalendar
In directory cvs.zope.org:/tmp/cvs-serv6487

Modified Files:
	CalendarTool.py 
Log Message:
Provide a default value for show_states parameter.


=== Products/CMFCalendar/CalendarTool.py 1.15 => 1.16 ===
--- Products/CMFCalendar/CalendarTool.py:1.15	Wed Aug  4 19:04:30 2004
+++ Products/CMFCalendar/CalendarTool.py	Sat Aug  7 11:14:28 2004
@@ -56,11 +56,12 @@
                                    __name__='manage_configure')
 
     security.declareProtected( ManagePortal, 'edit_configuration' )
-    def edit_configuration(self, show_types, use_session, show_states):
+    def edit_configuration(self, show_types, use_session, show_states=None):
         """ Change the configuration of the calendar tool """
         self.calendar_types = tuple(show_types)
-        self.calendar_states = tuple(show_states)
         self.use_session = use_session
+        if show_states is not None:
+            self.calendar_states = tuple(show_states)
         if hasattr(self.REQUEST, 'RESPONSE'):
             self.REQUEST.RESPONSE.redirect('manage_configure')
 



More information about the CMF-checkins mailing list