If there are no per-contact settings, return defaults.

This commit is contained in:
js 2008-07-24 22:13:13 +00:00
parent 2662b69986
commit ffd0bb8b0b

View file

@ -585,6 +585,10 @@ class Config:
if not key:
return dict.keys()
if not dict.has_key(key):
if self.__options_per_key.has_key(optname) \
and self.__options_per_key[optname][0].has_key(subname):
return self.__options_per_key \
[optname][0][subname][1]
return None
obj = dict[key]
if not subname: