Changeset 7888 for branches/gajim_0.11/src/common/passwords.py
- Timestamp:
- 01/23/07 21:32:43 (23 months ago)
- Files:
-
- 1 modified
-
branches/gajim_0.11/src/common/passwords.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11/src/common/passwords.py
r7829 r7888 19 19 USER_HAS_GNOMEKEYRING = False 20 20 USER_USES_GNOMEKEYRING = False 21 if gajim.config.get('use_gnomekeyring'): 22 try: 23 import gnomekeyring 24 except ImportError: 25 pass 26 else: 27 USER_HAS_GNOMEKEYRING = True 28 if gnomekeyring.is_available(): 29 USER_USES_GNOMEKEYRING = True 30 else: 31 USER_USES_GNOMEKEYRING = False 21 gnomekeyring = None 32 22 33 23 class PasswordStorage(object): … … 103 93 global storage 104 94 if storage is None: # None is only in first time get_storage is called 95 if gajim.config.get('use_gnomekeyring'): 96 global gnomekeyring 97 try: 98 import gnomekeyring 99 except ImportError: 100 pass 101 else: 102 global USER_HAS_GNOMEKEYRING 103 global USER_USES_GNOMEKEYRING 104 USER_HAS_GNOMEKEYRING = True 105 if gnomekeyring.is_available(): 106 USER_USES_GNOMEKEYRING = True 107 else: 108 USER_USES_GNOMEKEYRING = False 105 109 if USER_USES_GNOMEKEYRING: 106 110 try:
