Lessons learned from looking at telepathy-python to better understand what it was...
[theonering] / src / location.py
index 0a4594b..24e73a0 100644 (file)
@@ -1,11 +1,18 @@
 import telepathy
 
 
-class TheOneRingLocation(telepathy.server.ConnectionInterfaceLocation):
+class LocationMixin(telepathy.server.ConnectionInterfaceLocation):
 
        def __init__(self):
                telepathy.server.ConnectionInterfaceLocation.__init__(self)
 
+       @property
+       def session(self):
+               """
+               @abstract
+               """
+               raise NotImplementedError()
+
        def GetLocations(self, contacts):
                """
                @returns {Contact: {Location Type: Location}}