My telepathy doesn't support it yet but giving myself a reminder to later implement...
authorEd Page <eopage@byu.net>
Sun, 27 Sep 2009 00:02:25 +0000 (19:02 -0500)
committerEd Page <eopage@byu.net>
Sun, 27 Sep 2009 00:02:25 +0000 (19:02 -0500)
src/location.py [new file with mode: 0644]

diff --git a/src/location.py b/src/location.py
new file mode 100644 (file)
index 0000000..0a4594b
--- /dev/null
@@ -0,0 +1,25 @@
+import telepathy
+
+
+class TheOneRingLocation(telepathy.server.ConnectionInterfaceLocation):
+
+       def __init__(self):
+               telepathy.server.ConnectionInterfaceLocation.__init__(self)
+
+       def GetLocations(self, contacts):
+               """
+               @returns {Contact: {Location Type: Location}}
+               """
+               raise NotImplementedError()
+
+       def RequestLocation(self, contact):
+               """
+               @returns {Location Type: Location}
+               """
+               raise NotImplementedError()
+
+       def SetLocation(self, location):
+               """
+               Since presence is based off of phone numbers, not allowing the client to change it
+               """
+               raise telepathy.errors.PermissionDenied()