Now when I do a Bizobj.new() I follow up with a Form.update(). To be honest
I'm not sure that should be required but it is (otherwise the
dDateTextBox.Value = u'' and that value will not work correctly)
Update() will populate the dDateTextBox with
01-01-01.
Which of course is not what I want to show my user. I'd much prefer a blank
control or what VFP displays " / / "
If I do a double click on the control the calendar pops open but of course the
year for the calendar is 01 (1901?). I think it would be best if the
calendar dialog used today's date to start.
I also can not use any of the shortcut keys. Even when I force one of the
short keys though (using my debugger) I get an exception from dDateTextBox.
NameError: name 'year' is not defined. Which I think is coming from the
following section of the code:
if isDateTime:
try:
ret = datetime.datetime(year, month, day, hr,
mn, sec)
except:
if not testing:
# Don't fill up the logs with error
messages from tests that
# are expected to fail.
dabo.errorLog.write(_("Invalid datetime
specified: %s") % val )
ret = None
else:
try:
ret = datetime.date(year, month, day)
except:
if not testing:
# Don't fill up the logs with error
messages from tests that
# are expected to fail.
dabo.errorLog.write(_("Invalid date
specified: %s") % val )
ret = None
return ret
I'm guessing that the 'year','month','day' are not being defined first.
--
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]