Fix dbus_bindings import namespace

This commit is contained in:
Dan Williams 2006-07-24 11:08:59 -05:00
parent ba6c75725d
commit a827175a28

View File

@ -146,7 +146,7 @@ class PresenceService(gobject.GObject):
def get_activity(self, activity_id):
try:
act_op = self._ps.getActivity(activity_id)
except dbus_bindings.DBusException:
except dbus.dbus_bindings.DBusException:
return None
return self._new_object(act_op)
@ -160,21 +160,21 @@ class PresenceService(gobject.GObject):
def get_buddy_by_name(self, name):
try:
buddy_op = self._ps.getBuddyByName(name)
except dbus_bindings.DBusException:
except dbus.dbus_bindings.DBusException:
return None
return self._new_object(buddy_op)
def get_buddy_by_address(self, addr):
try:
buddy_op = self._ps.getBuddyByAddress(addr)
except dbus_bindings.DBusException:
except dbus.dbus_bindings.DBusException:
return None
return self._new_object(buddy_op)
def get_owner(self):
try:
owner_op = self._ps.getOwner()
except dbus_bindings.DBusException:
except dbus.dbus_bindings.DBusException:
return None
return self._new_object(owner_op)