I need it to be data aware, and CalendarCtrl isn't(?).
I have a date field in my database, and when the DateTextBox tries to
receive it's value I get:
Dabo Error Log: Wed Jan 24 17:34:31 2007: !!! Data Type Mismatch:
field=dato. Expecting: <type 'datetime.date'>; got: <type 'unicode'>
But it still gets the right date.
The calendar popup only works if the control is lying directly on a
form, not if it's in a panel. Then it is shown directly on the form so
you can't change anything.
If I change the date value, it doesn't update the value in the bizobj.
Anther thing is that I want my fields to start with a None value, so I
have None in my DefaultValues. I then get (but only for the first record
I create):
Dabo Error Log: Wed Jan 24 17:41:27 2007: cannot create 'NoneType'
instances
Another thing is that validateField doesn't fire when there it is
getting a valid value from the table and you change it to an invalid
value. It just sets the value to its original value.
I also get an exception when trying to save the new records.. This might
be because of the None values..?
Traceback (most recent call last):
File
"c:\python24\lib\site-packages\Dabo-0.8a-py2.4.egg\dabo\lib\eventMixin.p
y", line 97, in raiseEvent
bindingFunction(event)
File
"c:\python24\lib\site-packages\Dabo-0.8a-py2.4.egg\dabo\ui\uiwx\dForm.py
", line 586, in onSave
def onSave(self, evt): self.save()
File
"c:\python24\lib\site-packages\Dabo-0.8a-py2.4.egg\dabo\ui\uiwx\dForm.py
", line 268, in save
bizobj.saveAll()
File
"c:\python24\lib\site-packages\Dabo-0.8a-py2.4.egg\dabo\biz\dBizobj.py",
line 278, in saveAll
raise dException.dException, e
QueryException: No records updated
Every time I try to use the bizobjs, I get into loads of trouble so I
always end up discarding them... Am I the only one using them wrong?
This ended as more of an bizobj related mail...
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ed Leafe
Sent: 24. januar 2007 14:18
To: Dabo developers' list
Subject: Re: [dabo-dev] The current state of dDateTextBox
On Jan 24, 2007, at 8:02 AM, Simen Haugen wrote:
> I see there's a new implementation using wx.DatePickerCtrl, but it is
> marked as unstable.
>
> Is someone working on getting this to work properly?
Not that I know of. I found the CalendarCtrl to work just fine
for
dDateTextBox.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev