5 import util.misc as misc_utils
8 _moduleLogger = logging.getLogger('location')
11 #class LocationMixin(tp.ConnectionInterfaceLocation):
12 class LocationMixin(object):
15 #tp.ConnectionInterfaceLocation.__init__(self)
23 raise NotImplementedError("Abstract property called")
25 @misc_utils.log_exception(_moduleLogger)
26 def GetLocations(self, contacts):
28 @returns {Contact: {Location Type: Location}}
30 raise telepathy.errors.NotImplemented("Yet")
32 @misc_utils.log_exception(_moduleLogger)
33 def RequestLocation(self, contact):
35 @returns {Location Type: Location}
37 raise telepathy.errors.NotImplemented("Yet")
39 @misc_utils.log_exception(_moduleLogger)
40 def SetLocation(self, location):
42 Since presence is based off of phone numbers, not allowing the client to change it
44 raise telepathy.errors.PermissionDenied()