Fix dbus_bindings import namespace
This commit is contained in:
parent
ba6c75725d
commit
a827175a28
@ -146,7 +146,7 @@ class PresenceService(gobject.GObject):
|
|||||||
def get_activity(self, activity_id):
|
def get_activity(self, activity_id):
|
||||||
try:
|
try:
|
||||||
act_op = self._ps.getActivity(activity_id)
|
act_op = self._ps.getActivity(activity_id)
|
||||||
except dbus_bindings.DBusException:
|
except dbus.dbus_bindings.DBusException:
|
||||||
return None
|
return None
|
||||||
return self._new_object(act_op)
|
return self._new_object(act_op)
|
||||||
|
|
||||||
@ -160,21 +160,21 @@ class PresenceService(gobject.GObject):
|
|||||||
def get_buddy_by_name(self, name):
|
def get_buddy_by_name(self, name):
|
||||||
try:
|
try:
|
||||||
buddy_op = self._ps.getBuddyByName(name)
|
buddy_op = self._ps.getBuddyByName(name)
|
||||||
except dbus_bindings.DBusException:
|
except dbus.dbus_bindings.DBusException:
|
||||||
return None
|
return None
|
||||||
return self._new_object(buddy_op)
|
return self._new_object(buddy_op)
|
||||||
|
|
||||||
def get_buddy_by_address(self, addr):
|
def get_buddy_by_address(self, addr):
|
||||||
try:
|
try:
|
||||||
buddy_op = self._ps.getBuddyByAddress(addr)
|
buddy_op = self._ps.getBuddyByAddress(addr)
|
||||||
except dbus_bindings.DBusException:
|
except dbus.dbus_bindings.DBusException:
|
||||||
return None
|
return None
|
||||||
return self._new_object(buddy_op)
|
return self._new_object(buddy_op)
|
||||||
|
|
||||||
def get_owner(self):
|
def get_owner(self):
|
||||||
try:
|
try:
|
||||||
owner_op = self._ps.getOwner()
|
owner_op = self._ps.getOwner()
|
||||||
except dbus_bindings.DBusException:
|
except dbus.dbus_bindings.DBusException:
|
||||||
return None
|
return None
|
||||||
return self._new_object(owner_op)
|
return self._new_object(owner_op)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user