On Jan 7, 2008 4:38 AM, Simen Haugen <[EMAIL PROTECTED]> wrote:
> I don't know if this is a bug or just the wrong use, but...
>
>
>
> dCheckBox(self, DataSource=self.PreferenceManager, DataField="check")
>
> This creates the field "check" if it doesn't exist and stores the
> checkbox as a bool value. All good...
>
>
>
>
>
> dTextBox(self, DataSource=self.PreferenceManager, DataField="field")
>
> I would have guessed that this would create the key "field" with a blank
> string value, but it doesn't. It creates a dPref key with this name, and
> gives the textbox this instead of the value.
>
>
>
> BAD TYPE <class 'dabo.dPref.dPref'>
>
> Dabo Error Log: Mon Jan 07 12:38:05 2008: Could not bind to
> '<dabo.dPref.dPref object at 0x02EE94D0>._reshs011_outDirectory'
>
> Reason: 'dPref' object is not callable

You have to add some checks to your code.  I have to do this too on my
own code.  Since preference objects can be nested, it makes sense that
it is done this way.  The checks aren't too much more code.  To make
dabo try to guess the appropriate type is going to be more code and
work than I and I am sure Ed and Paul want to put in at the moment.

Simen, if you are still stuck contact me off list and I will send you
some code samples.

Cheers,

Nate L.


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to