#1057: CalendarDatePicker should support setting the default date
-------------------------+--------------------------------------------------
Reporter: bjourne | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 1.0b1
Component: Widgets | Version: 0.9a6
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by alberto):
That patch fixes it. However, I'm not sure I should commit it because
widgets' attributes shouldn't be mutated once the widget is initialized.
Well, actually it's once the widget is first displayed, but playing it
safe and retracting the border to "once it's initialized" is easier to
understand and get right IMO.
Your code can be rewritten as:
{{{
#!py
from datetime import date
from turbogears.widgets import CalendarDatePicker
p = CalendarDatePicker(default=date.today())
}}}
To sum up. I'd rather close this as wontfix.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1057>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---