On Jan 7, 2008, at 11:14 AM, Nate Lowrie wrote:

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

        dPref has a method named 'hasKey(key)' that returns True if the  
passed key name exists. This is the only way to check, since directly  
referencing the key will create it as an empty dPref object.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
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