From 41706acc5166b4977c233aba2d9a47ca826ef5ab Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Wed, 10 Aug 2005 00:04:25 +0000 Subject: [PATCH] the ONLY possible fix for dbus 0.34 __getitem__ nonsence --- scripts/gajim-remote.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/scripts/gajim-remote.py b/scripts/gajim-remote.py index 5acf11c09..9dd04e8e4 100755 --- a/scripts/gajim-remote.py +++ b/scripts/gajim-remote.py @@ -213,7 +213,24 @@ Please specify account for sending the message.') % sys.argv[2]) else: send_error(_('Unknow dbus version: %s') % _version) # get the function asked - self.method = eval('self.interface.'+self.command) + if self.command == 'toggle_roster_appearance': + self.method = self.interface.toggle_roster_appearance + elif self.command == 'help': + self.method = self.interface.help + elif self.command == 'contact_info': + self.method = self.interface.contact_info + elif self.command == 'send_message': + self.method = self.interface.send_message + elif self.command == 'show_next_unread': + self.method = self.interface.show_next_unread + elif self.command == 'open_chat': + self.method = self.interface.open_chat + elif self.command == 'list_accounts': + self.method = self.interface.list_accounts + elif self.command == 'change_status': + self.method = self.interface.change_status + elif self.command == 'list_contacts': + self.method = self.interface.list_contacts def make_arguments_row(self, args): ''' return arguments list. Mandatory arguments are enclosed with: