On Friday 18 January 2008 09:57:47 am Paul McNett wrote: > johnf wrote: > > Hi, > > 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. > > Commit it; it looks like it is semi-redundant with the code above it, > and wrong. > > Paul
Can't SVN is down! -- John Fabiani _______________________________________________ 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]
