On Jan 18, 2008, at 9:45 AM, johnf wrote:
> I believe I have discovered a bug in dDateTextBox.
>
> class CalPanel(dPanel):
> def __init__(self, parent, pos=None, dt=None, ctrl=None ):
>
> if isinstance(dt, (datetime.datetime, datetime.date)):
> self.date = dt
> else:
> self.date = datetime.date.today()
> #old code!!!!!!!!!!!!
> #if dt is None:
> #self.date = datetime.date.today()
> #else:
> #self.date = dt
> #end old code!!!!!!!!
> self.ctrl = ctrl
> super(CalPanel, self).__init__(parent, pos=pos)
>
> The above fixes an issue when I my passes a u'' as the value of dt.
The *only* place that CalPanel should be called is from dDateTextBox.
It should *always* pass its Value to CalPanel. If your date textbox
has a string as its Value, something is very wrong there; you
certainly don't want to mask the problem as you are doing here.
-- Ed
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]