Show
Ignore:
Timestamp:
12/16/06 18:44:59 (2 years ago)
Author:
nk
Message:

HIG to adhod glade file; TODO-> FIXME and better header for the corresponding py

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/adhoc_commands.py

    r7549 r7662  
    11# -*- coding: utf-8 -*- 
    2 ##      config.py 
     2##      adhoc_commands.py 
    33## 
    4 ## Copyright (C) 2003-2004 Yann Le Boulanger <asterix@lagaule.org> 
    5 ##                         Vincent Hanquez <tab@snarc.org> 
    6 ## Copyright (C) 2005 Yann Le Boulanger <asterix@lagaule.org> 
    7 ##                    Vincent Hanquez <tab@snarc.org> 
     4## Copyright (C) 2006 Yann Le Boulanger <asterix@lagaule.org> 
    85##                    Nikos Kouremenos <nkour@jabber.org> 
    9 ##                    Dimitur Kirov <dkirov@gmail.com> 
    10 ##                    Travis Shirk <travis@pobox.com> 
    11 ##                    Norman Rasmussen <norman@rasmussen.co.za> 
    126## 
    137## This program is free software; you can redistribute it and/or modify 
     
    2014## GNU General Public License for more details. 
    2115 
    22 # TODO: think if we need caching command list. it may be wrong if there will 
    23 # TODO: be entities that often change the list, it may be slow to fetch it 
    24 # TODO: every time 
     16# FIXME: think if we need caching command list. it may be wrong if there will 
     17# be entities that often change the list, it may be slow to fetch it every time 
    2518 
    2619import gobject 
     
    158151        def stage2(self): 
    159152                '''Populate the command list vbox with radiobuttons 
    160                 (TODO: if there is more commands, maybe some kind of list?), 
     153                (FIXME: if there is more commands, maybe some kind of list?), 
    161154                set widgets' state.''' 
    162155                # close old stage 
     
    302295                                self.data_form_widget.data_form=self.dataform 
    303296                        except dataforms.Error: 
    304                                 # TODO: translate 
     297                                # FIXME: translate 
    305298                                self.stage5(error='Service sent malformed data', senderror=True) 
    306299                        self.data_form_widget.show() 
     
    366359        def stage5(self, error=None, errorid=None, senderror=False): 
    367360                '''Display the error message. Wait for user to close the window''' 
    368                 # TODO: sending error to responder 
     361                # FIXME: sending error to responder 
    369362                # close old stage 
    370363                self.stage_finish() 
     
    434427                def callback(response): 
    435428                        '''Called on response to query.''' 
    436                         # TODO: move to connection_handlers.py 
     429                        # FIXME: move to connection_handlers.py 
    437430                        # is error => error stage 
    438431                        error = response.getError() 
     
    472465                if self.data_form_widget.data_form is not None: 
    473466#                       cmdnode.addChild(node=dataforms.DataForm(tofill=self.data_form_widget.data_form)) 
    474                         # TODO: simplified form to send 
     467                        # FIXME: simplified form to send 
    475468                        cmdnode.addChild(node=self.data_form_widget.data_form) 
    476469 
    477470                def callback(response): 
    478                         # TODO: move to connection_handlers.py 
     471                        # FIXME: move to connection_handlers.py 
    479472                        err = response.getError() 
    480473                        if err is not None: 
     
    500493                        self.account.connection.send(stanza) 
    501494                else: 
    502                         # we did not received any reply from service; TODO: we should wait and 
     495                        # we did not received any reply from service; FIXME: we should wait and 
    503496                        # then send cancel; for now we do nothing 
    504497                        pass