updated py2deb
[theonering] / src / handle.py
index 022a093..e2c7ae3 100644 (file)
@@ -4,6 +4,9 @@ import weakref
 import telepathy
 
 
+_moduleLogger = logging.getLogger("handle")
+
+
 class MetaMemoize(type):
        """
        Allows a class to cache off instances for reuse
@@ -13,7 +16,7 @@ class MetaMemoize(type):
                obj, newlyCreated = cls.__new__(cls, connection, *args)
                if newlyCreated:
                        obj.__init__(connection, connection.get_handle_id(), *args)
-                       logging.info("New Handle %r" % obj)
+                       _moduleLogger.info("New Handle %r" % obj)
                return obj
 
 
@@ -49,7 +52,7 @@ class TheOneRingHandle(telepathy.server.Handle):
        name = property(telepathy.server.Handle.get_name)
 
 
-class SelfHandle(TheOneRingHandle):
+class ConnectionHandle(TheOneRingHandle):
 
        instance = None
 
@@ -109,7 +112,7 @@ class GroupHandle(TheOneRingHandle):
 
 
 _HANDLE_TYPE_MAPPING = {
-       'self': SelfHandle,
+       'connection': ConnectionHandle,
        'contact': ContactHandle,
        'list': ListHandle,
        'group': GroupHandle,