[gnome-games/sudoku-tube: 54/55] Use SOCKET_ACCESS_CONTROL_LOCALHOST



commit 4bb5489c930da5c3f7067c5cdffa98e54d476376
Author: Zhang Sen <zh jesse gmail com>
Date:   Sat Sep 5 16:01:13 2009 +0800

    Use SOCKET_ACCESS_CONTROL_LOCALHOST

 gnome-sudoku/src/lib/contact_selector.py |    2 +-
 gnome-sudoku/src/lib/tp_tube.py          |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/contact_selector.py b/gnome-sudoku/src/lib/contact_selector.py
index 9e45a85..8356784 100644
--- a/gnome-sudoku/src/lib/contact_selector.py
+++ b/gnome-sudoku/src/lib/contact_selector.py
@@ -348,7 +348,7 @@ def contact_selector_run(parent=None):
             logger.debug("selected: %s\n"
                          "  connection: %s\n"
                          "  handle: %d\n"
-                         "  collaborate :%d\n"
+                         "  collaborate: %s\n"
                          "  level: %s" % (
                     contact.alias, conn.service_name, handle, mode, game_level))
             out = (conn, handle, mode, game_level)
diff --git a/gnome-sudoku/src/lib/tp_tube.py b/gnome-sudoku/src/lib/tp_tube.py
index c700de7..eff8927 100644
--- a/gnome-sudoku/src/lib/tp_tube.py
+++ b/gnome-sudoku/src/lib/tp_tube.py
@@ -13,7 +13,7 @@ from telepathy.interfaces import (
         CONNECTION_INTERFACE_REQUESTS)
 from telepathy.constants import (
         HANDLE_TYPE_CONTACT,
-        SOCKET_ACCESS_CONTROL_CREDENTIALS,
+        SOCKET_ACCESS_CONTROL_LOCALHOST,
         TUBE_CHANNEL_STATE_OPEN,
         TUBE_CHANNEL_STATE_REMOTE_PENDING)
 import telepathy.errors
@@ -98,7 +98,7 @@ class TubeOffer(gobject.GObject):
             data = {'puzzle': self._puzzle, 'game_mode': self._game_mode}
             self._address = self._chan[CHANNEL_TYPE_DBUS_TUBE].Offer(
                     data,
-                    SOCKET_ACCESS_CONTROL_CREDENTIALS)
+                    SOCKET_ACCESS_CONTROL_LOCALHOST)
         except dbus.exceptions.DBusException as excep:
             error_busname = telepathy.errors.NotAvailable().get_dbus_name()
             if excep.get_dbus_name() == error_busname:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]