Updating from Dialcentral
[theonering] / src / location.py
1 import telepathy
2
3
4 #class LocationMixin(telepathy.server.ConnectionInterfaceLocation):
5 class LocationMixin(object):
6
7         def __init__(self):
8                 #telepathy.server.ConnectionInterfaceLocation.__init__(self)
9                 pass
10
11         @property
12         def session(self):
13                 """
14                 @abstract
15                 """
16                 raise NotImplementedError()
17
18         def GetLocations(self, contacts):
19                 """
20                 @returns {Contact: {Location Type: Location}}
21                 """
22                 raise NotImplementedError()
23
24         def RequestLocation(self, contact):
25                 """
26                 @returns {Location Type: Location}
27                 """
28                 raise NotImplementedError()
29
30         def SetLocation(self, location):
31                 """
32                 Since presence is based off of phone numbers, not allowing the client to change it
33                 """
34                 raise telepathy.errors.PermissionDenied()