[Checkins] SVN: zc.datetimewidget/branches/gintas-dateranges/src/zc/datetimewidget/datetimewidget.py - Fixed outdated docstring (thanks for the note, Fred!).

Gintautas Miliauskas gintas at pov.lt
Wed Aug 30 11:38:37 EDT 2006


Log message for revision 69890:
  - Fixed outdated docstring (thanks for the note, Fred!).
  - Made the date set widget wider.  We might want something completely
    different here, maybe a bullet list of dates?  I'll give it some more
    thought when the purchasing view in classifieds is a bit more fleshed out.
  

Changed:
  U   zc.datetimewidget/branches/gintas-dateranges/src/zc/datetimewidget/datetimewidget.py

-=-
Modified: zc.datetimewidget/branches/gintas-dateranges/src/zc/datetimewidget/datetimewidget.py
===================================================================
--- zc.datetimewidget/branches/gintas-dateranges/src/zc/datetimewidget/datetimewidget.py	2006-08-30 14:31:23 UTC (rev 69889)
+++ zc.datetimewidget/branches/gintas-dateranges/src/zc/datetimewidget/datetimewidget.py	2006-08-30 15:38:37 UTC (rev 69890)
@@ -265,11 +265,16 @@
     def setEnabledWeekdays(self, enabled_weekdays):
         """Enable only particular weekdays.
 
-        `enabled_days` is a set of integers (0 = Sunday, 1 = Monday).
+        Other weekdays will simply not be selectable in the calendar
+        widget.
+
+        `enabled_weekdays` is a set of integers (0 = Sunday, 1 = Monday).
         """
         self.enabled_weekdays = enabled_weekdays
 
     def _toFieldValue(self, input):
+        # TODO: Manually check if weekday is enabled -- the user could have
+        # directly entered the date.
         if input == self._missing:
             return self.context.missing_value
         else:
@@ -310,7 +315,7 @@
 class DateSetWidget(DatetimeBase, textwidgets.DateWidget):
     """Widget for entry of sets of dates."""
 
-    displayWidth = 10
+    displayWidth = 30
 
     _format = '%Y-%m-%d'
     _showsTime = False



More information about the Checkins mailing list