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.
-- 
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]

Reply via email to