changeset de384276ed24 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=de384276ed24
description: split long lines
diffstat:
plugins/dbus_plugin/plugin.py | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diffs (59 lines):
diff -r 83f2011d544c -r de384276ed24 plugins/dbus_plugin/plugin.py
--- a/plugins/dbus_plugin/plugin.py Tue Dec 14 19:30:00 2010 +0300
+++ b/plugins/dbus_plugin/plugin.py Tue Dec 14 23:54:19 2010 +0300
@@ -98,7 +98,8 @@
class SignalObject(dbus.service.Object):
''' Local object definition for /org/gajim/dbus/RemoteObject.
- (This docstring is not be visible, because the clients can access
only the remote object.)'''
+ (This docstring is not be visible,
+ because the clients can access only the remote object.)'''
def __init__(self, bus_name):
self.first_show = True
@@ -175,6 +176,10 @@
def NewGmail(self, account_and_array):
pass
+ @dbus.service.signal(INTERFACE, signature='av')
+ def EntityTime(self, account_and_array):
+ pass
+
def raise_signal(self, signal, arg):
'''raise a signal, with a single argument of unspecified type
Instead of obj.raise_signal("Foo", bar), use obj.Foo(bar).'''
@@ -625,7 +630,7 @@
contact_dict['resources'] = dbus.Array([], signature='(sis)')
for contact in contacts:
resource_props =
dbus.Struct((DBUS_STRING(contact.resource),
- dbus.Int32(contact.priority),
DBUS_STRING(contact.status)))
+ dbus.Int32(contact.priority),
DBUS_STRING(contact.status)))
contact_dict['resources'].append(resource_props)
contact_dict['groups'] = dbus.Array([], signature='(s)')
for group in prim_contact.groups:
@@ -688,11 +693,11 @@
#self.config_default_values = {}
self.events_names = ['Roster', 'AccountPresence', 'ContactPresence',
- 'ContactAbsence',
'ContactStatus', 'NewMessage',
- 'Subscribe', 'Subscribed',
'Unsubscribed',
- 'NewAccount', 'VcardInfo',
'LastStatusTime',
- 'OsInfo', 'GCPresence',
'GCMessage', 'RosterInfo',
- 'NewGmail']
+ 'ContactAbsence', 'ContactStatus', 'NewMessage',
+ 'Subscribe', 'Subscribed', 'Unsubscribed',
+ 'NewAccount', 'VcardInfo', 'LastStatusTime',
+ 'OsInfo', 'GCPresence', 'GCMessage', 'RosterInfo',
+ 'NewGmail', 'EntityTime']
self.signal_object = None
@@ -720,7 +725,7 @@
self,
DBusPlugin))
self.events_handlers[event_name] = (ged.POSTCORE,
-
getattr(self, event_name))
+ getattr(self, event_name))
def _generate_handling_method(self, event_name):
def handler(self, arg):
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits