Show
Ignore:
Timestamp:
02/06/07 20:54:30 (22 months ago)
Author:
asterix
Message:

merge diff from trunk

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11/src/gajim.py

    r7829 r7940  
    8888        sys.exit() 
    8989 
     90del pritext 
     91 
    9092path = os.getcwd() 
    9193if '.svn' in os.listdir(path) or '_svn' in os.listdir(path): 
     
    135137del opts 
    136138del args 
     139del verbose 
    137140 
    138141import locale 
     
    141144import common.configpaths 
    142145common.configpaths.init_profile(profile) 
     146del profile 
    143147gajimpaths = common.configpaths.gajimpaths 
    144148 
     
    259263f.close() 
    260264del pid_dir 
     265del f 
    261266 
    262267def on_exit(): 
     
    445450                statuss = ['offline', 'error', 'online', 'chat', 'away', 'xa', 'dnd', 
    446451                        'invisible'] 
     452                # Ignore invalid show 
     453                if array[1] not in statuss: 
     454                        return 
    447455                old_show = 0 
    448456                new_show = statuss.index(array[1]) 
     
    10991107                use_gpg_agent = gajim.config.get('use_gpg_agent') 
    11001108                if use_gpg_agent: 
    1101                   return 
     1109                        return 
    11021110                keyID = gajim.config.get_per('accounts', account, 'keyid') 
    11031111                self.roster.forget_gpg_passphrase(keyID) 
     
    15861594                        gajim.connections[account].change_status('offline','') 
    15871595 
    1588         def read_sleepy(self):   
     1596        def read_sleepy(self): 
    15891597                '''Check idle status and change that status if needed''' 
    15901598                if not self.sleeper.poll(): 
     
    15981606                        if state == common.sleepy.STATE_AWAKE and \ 
    15991607                                gajim.sleeper_state[account] in ('autoaway', 'autoxa'): 
    1600                                 #we go online 
     1608                                # we go online 
    16011609                                self.roster.send_status(account, 'online', 
    16021610                                        gajim.status_before_autoaway[account]) 
     1611                                gajim.status_before_autoaway[account] = '' 
    16031612                                gajim.sleeper_state[account] = 'online' 
    16041613                        elif state == common.sleepy.STATE_AWAY and \ 
    16051614                                gajim.sleeper_state[account] == 'online' and \ 
    16061615                                gajim.config.get('autoaway'): 
    1607                                 #we save out online status 
     1616                                # we save out online status 
    16081617                                gajim.status_before_autoaway[account] = \ 
    16091618                                        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] 
    16111620                                self.roster.send_status(account, 'away', 
    16121621                                        gajim.config.get('autoaway_message'), auto=True) 
     
    16161625                                gajim.sleeper_state[account] == 'online') and \ 
    16171626                                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] 
    16191628                                self.roster.send_status(account, 'xa', 
    16201629                                        gajim.config.get('autoxa_message'), auto=True)