Author: js Date: 2008-07-25 00:13:13 +0200 (Fri, 25 Jul 2008) New Revision: 10018
Modified: trunk/src/common/config.py Log: If there are no per-contact settings, return defaults.
Modified: trunk/src/common/config.py =================================================================== --- trunk/src/common/config.py 2008-07-24 22:12:21 UTC (rev 10017) +++ trunk/src/common/config.py 2008-07-24 22:13:13 UTC (rev 10018) @@ -585,6 +585,10 @@ 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: