Changeset 7662 for trunk/src/adhoc_commands.py
- Timestamp:
- 12/16/06 18:44:59 (2 years ago)
- Files:
-
- 1 modified
-
trunk/src/adhoc_commands.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/adhoc_commands.py
r7549 r7662 1 1 # -*- coding: utf-8 -*- 2 ## config.py2 ## adhoc_commands.py 3 3 ## 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> 8 5 ## Nikos Kouremenos <nkour@jabber.org> 9 ## Dimitur Kirov <dkirov@gmail.com>10 ## Travis Shirk <travis@pobox.com>11 ## Norman Rasmussen <norman@rasmussen.co.za>12 6 ## 13 7 ## This program is free software; you can redistribute it and/or modify … … 20 14 ## GNU General Public License for more details. 21 15 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 25 18 26 19 import gobject … … 158 151 def stage2(self): 159 152 '''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?), 161 154 set widgets' state.''' 162 155 # close old stage … … 302 295 self.data_form_widget.data_form=self.dataform 303 296 except dataforms.Error: 304 # TODO: translate297 # FIXME: translate 305 298 self.stage5(error='Service sent malformed data', senderror=True) 306 299 self.data_form_widget.show() … … 366 359 def stage5(self, error=None, errorid=None, senderror=False): 367 360 '''Display the error message. Wait for user to close the window''' 368 # TODO: sending error to responder361 # FIXME: sending error to responder 369 362 # close old stage 370 363 self.stage_finish() … … 434 427 def callback(response): 435 428 '''Called on response to query.''' 436 # TODO: move to connection_handlers.py429 # FIXME: move to connection_handlers.py 437 430 # is error => error stage 438 431 error = response.getError() … … 472 465 if self.data_form_widget.data_form is not None: 473 466 # cmdnode.addChild(node=dataforms.DataForm(tofill=self.data_form_widget.data_form)) 474 # TODO: simplified form to send467 # FIXME: simplified form to send 475 468 cmdnode.addChild(node=self.data_form_widget.data_form) 476 469 477 470 def callback(response): 478 # TODO: move to connection_handlers.py471 # FIXME: move to connection_handlers.py 479 472 err = response.getError() 480 473 if err is not None: … … 500 493 self.account.connection.send(stanza) 501 494 else: 502 # we did not received any reply from service; TODO: we should wait and495 # we did not received any reply from service; FIXME: we should wait and 503 496 # then send cancel; for now we do nothing 504 497 pass
