assist dkirov

This commit is contained in:
Nikos Kouremenos 2005-07-17 22:30:46 +00:00
parent f9e76174ac
commit d98ee81520
1 changed files with 8 additions and 12 deletions

View File

@ -95,7 +95,7 @@ class SignalObject(DbusPrototype):
def raise_signal(self, signal, arg): def raise_signal(self, signal, arg):
''' raise a signal, with a single string message ''' ''' raise a signal, with a single string message '''
if _version[1] >=30: if _version[1] >= 30:
from dbus import dbus_bindings from dbus import dbus_bindings
message = dbus_bindings.Signal(OBJ_PATH, INTERFACE, signal) message = dbus_bindings.Signal(OBJ_PATH, INTERFACE, signal)
iter = message.get_iter(True) iter = message.get_iter(True)
@ -175,8 +175,8 @@ class SignalObject(DbusPrototype):
status, message) status, message)
return None return None
def show_waiting(self, *args): def show_next_unread(self, *args):
''' Show the window(s) with waiting messages/chats. ''' ''' Show the window(s) with next waiting messages/chats. '''
#FIXME: when systray is disabled this method does nothing. #FIXME: when systray is disabled this method does nothing.
if len(self.plugin.systray.jids) != 0: if len(self.plugin.systray.jids) != 0:
account = self.plugin.systray.jids[0][0] account = self.plugin.systray.jids[0][0]
@ -202,18 +202,14 @@ class SignalObject(DbusPrototype):
def contact_info(self, *args): def contact_info(self, *args):
''' get vcard info for a contact. The second argument is optional and ''' get vcard info for a contact. This method returns nothing.
stands for the account, to which this contact belongs. This method You have to register the 'VcardInfo' signal to get the real vcard. '''
return nothing. You have to register the 'VcartInfo' signal to get the jid = self._get_real_arguments(args, 1)
real vcard. '''
jid, account = self._get_real_arguments(args, 2)
if not jid: if not jid:
# FIXME: raise exception for missing argument (0.3+) # FIXME: raise exception for missing argument (0.3+)
return None return None
if account:
accounts = [account] accounts = self.contacts.keys()
else:
accounts = self.contacts.keys()
iq = None iq = None
for account in accounts: for account in accounts: