- Timestamp:
- 11/10/08 12:50:57 (2 months ago)
- Files:
-
- 1 modified
-
trunk/turbomail/api.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/turbomail/api.py
r111 r116 63 63 value was not found, the default value (default None) is returned. If 64 64 tm2_key was specified, """ 65 value = None 66 65 67 if key in interface.config: 66 68 value = interface.config.get(key) 69 67 70 else: 68 71 if tm2_key != None and not tm2_key.startswith('mail.'): … … 75 78 warn_text = basemsg % (tm2_key, key) 76 79 warnings.warn(warn_text, category=DeprecationWarning) 77 if value == None: 78 value = default 80 81 if value == None: value = default 82 79 83 return value 80 84
