My telepathy doesn't support it yet but giving myself a reminder to later implement...
[theonering] / src / location.py
1 import telepathy
2
3
4 class TheOneRingLocation(telepathy.server.ConnectionInterfaceLocation):
5
6         def __init__(self):
7                 telepathy.server.ConnectionInterfaceLocation.__init__(self)
8
9         def GetLocations(self, contacts):
10                 """
11                 @returns {Contact: {Location Type: Location}}
12                 """
13                 raise NotImplementedError()
14
15         def RequestLocation(self, contact):
16                 """
17                 @returns {Location Type: Location}
18                 """
19                 raise NotImplementedError()
20
21         def SetLocation(self, location):
22                 """
23                 Since presence is based off of phone numbers, not allowing the client to change it
24                 """
25                 raise telepathy.errors.PermissionDenied()