On Friday 15 February 2008 7:19 pm, Ed Leafe wrote:
> On Feb 15, 2008, at 8:46 PM, Ed Leafe wrote:
> >> The question is,
> >> is there a way to enter None from the Keys Editor?
> >
> >     I don't know; I've never tried it.
> >
> >     I'm sure it is a matter of properly parsing the XML, but I'l have to
> > dig a bit.
>
>       Hmm... it doesn't appear to be that simple. Apparently the
> wx.gizmos.EditableListBox, which is the basis for the Dabo
> dEditableListBox used in the Keys editor, only works with string
> values. It isn't None that's the problem; try entering the integer 33,
> and you get u'33' in the property.
>
>       I don't know of a quick solution. I have confirmed that if you edit
> the .cdxml file manually, the values are preserved upon saving the
> design, and are the correct type when the design is run. However, if
> you try to edit them in the Class Designer, you will get errors, as
> the control can only handle lists of strings.
>
> -- Ed Leafe
>

Yea, that is where I ended up. Seems to me a possible solution would be for 
Dabo to recognize u'None' ==None. The problem being if someone used the 
string u'None' as a Key value and did not  want it to mean None(NULL). The 
other option I just thought of would be to have u'NULL'==None.

-- 
Adrian Klaver
[EMAIL PROTECTED]


_______________________________________________
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