[pygtk] gnome.config *_with_default() methods

Graham Ashton graham@effectif.com
Wed, 27 Feb 2002 17:40:53 +0000


Is there any reason why there aren't any *_with_default() methods defined
in the gnome.config module?

I was thinking that I should do:

  foo = gnome.config.get_string_with_default("%s=%s" % (path, default))

but it doesn't seem to be defined, while get_string() is. Is there an
alternative, or should I code up default functionality myself?

Thanks.

-- 
Graham Ashton <graham@effectif.com>