Changeset 7829 for branches/gajim_0.11/src/adhoc_commands.py
- Timestamp:
- 01/13/07 23:35:41 (23 months ago)
- Files:
-
- 1 modified
-
branches/gajim_0.11/src/adhoc_commands.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11/src/adhoc_commands.py
r7662 r7829 267 267 if self.data_form_widget.get_data_form() is None: 268 268 self.data_form_widget.hide() 269 else: 270 self.data_form_widget.data_form.type='submit' 269 271 270 272 self.close_button.set_sensitive(True) … … 297 299 # FIXME: translate 298 300 self.stage5(error='Service sent malformed data', senderror=True) 301 return 299 302 self.data_form_widget.show() 303 if self.data_form_widget.title: 304 self.window.set_title("%s - Ad-hoc Commands - Gajim" % \ 305 self.data_form_widget.title) 300 306 else: 301 307 self.data_form_widget.hide() … … 466 472 # cmdnode.addChild(node=dataforms.DataForm(tofill=self.data_form_widget.data_form)) 467 473 # FIXME: simplified form to send 474 468 475 cmdnode.addChild(node=self.data_form_widget.data_form) 469 476 … … 481 488 '''Send the command with action='cancel'. ''' 482 489 assert self.commandnode is not None 483 if self.sessionid is not None :490 if self.sessionid is not None and self.account.connection: 484 491 # we already have sessionid, so the service sent at least one reply. 485 492 stanza = xmpp.Iq(typ='set', to=self.jid) … … 490 497 'action':'cancel' 491 498 }) 492 499 493 500 self.account.connection.send(stanza) 494 501 else:
