Changeset 7940 for branches/gajim_0.11/src/gajim.py
- Timestamp:
- 02/06/07 20:54:30 (22 months ago)
- Files:
-
- 1 modified
-
branches/gajim_0.11/src/gajim.py (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11/src/gajim.py
r7829 r7940 88 88 sys.exit() 89 89 90 del pritext 91 90 92 path = os.getcwd() 91 93 if '.svn' in os.listdir(path) or '_svn' in os.listdir(path): … … 135 137 del opts 136 138 del args 139 del verbose 137 140 138 141 import locale … … 141 144 import common.configpaths 142 145 common.configpaths.init_profile(profile) 146 del profile 143 147 gajimpaths = common.configpaths.gajimpaths 144 148 … … 259 263 f.close() 260 264 del pid_dir 265 del f 261 266 262 267 def on_exit(): … … 445 450 statuss = ['offline', 'error', 'online', 'chat', 'away', 'xa', 'dnd', 446 451 'invisible'] 452 # Ignore invalid show 453 if array[1] not in statuss: 454 return 447 455 old_show = 0 448 456 new_show = statuss.index(array[1]) … … 1099 1107 use_gpg_agent = gajim.config.get('use_gpg_agent') 1100 1108 if use_gpg_agent: 1101 return1109 return 1102 1110 keyID = gajim.config.get_per('accounts', account, 'keyid') 1103 1111 self.roster.forget_gpg_passphrase(keyID) … … 1586 1594 gajim.connections[account].change_status('offline','') 1587 1595 1588 def read_sleepy(self): 1596 def read_sleepy(self): 1589 1597 '''Check idle status and change that status if needed''' 1590 1598 if not self.sleeper.poll(): … … 1598 1606 if state == common.sleepy.STATE_AWAKE and \ 1599 1607 gajim.sleeper_state[account] in ('autoaway', 'autoxa'): 1600 # we go online1608 # we go online 1601 1609 self.roster.send_status(account, 'online', 1602 1610 gajim.status_before_autoaway[account]) 1611 gajim.status_before_autoaway[account] = '' 1603 1612 gajim.sleeper_state[account] = 'online' 1604 1613 elif state == common.sleepy.STATE_AWAY and \ 1605 1614 gajim.sleeper_state[account] == 'online' and \ 1606 1615 gajim.config.get('autoaway'): 1607 # we save out online status1616 # we save out online status 1608 1617 gajim.status_before_autoaway[account] = \ 1609 1618 gajim.connections[account].status 1610 # we go away (no auto status) [we pass True to auto param]1619 # we go away (no auto status) [we pass True to auto param] 1611 1620 self.roster.send_status(account, 'away', 1612 1621 gajim.config.get('autoaway_message'), auto=True) … … 1616 1625 gajim.sleeper_state[account] == 'online') and \ 1617 1626 gajim.config.get('autoxa'): 1618 # we go extended away [we pass True to auto param]1627 # we go extended away [we pass True to auto param] 1619 1628 self.roster.send_status(account, 'xa', 1620 1629 gajim.config.get('autoxa_message'), auto=True)
