X-Git-Url: http://git.maemo.org/git/?p=theonering;a=blobdiff_plain;f=src%2Flocation.py;h=a77d0c77081c3b347b4be5732ef0ea96288899ab;hp=0a4594be97e8849bad74d09aee9b352a88f95000;hb=685196ea14853e3970dc0a514d609ce8ab96f911;hpb=ad85e0608ea242356672fc011fe92ee3effb89e6 diff --git a/src/location.py b/src/location.py index 0a4594b..a77d0c7 100644 --- a/src/location.py +++ b/src/location.py @@ -1,23 +1,42 @@ +import logging + import telepathy +import util.misc as misc_utils + + +_moduleLogger = logging.getLogger('location') + -class TheOneRingLocation(telepathy.server.ConnectionInterfaceLocation): +#class LocationMixin(tp.ConnectionInterfaceLocation): +class LocationMixin(object): def __init__(self): - telepathy.server.ConnectionInterfaceLocation.__init__(self) + #tp.ConnectionInterfaceLocation.__init__(self) + pass + + @property + def session(self): + """ + @abstract + """ + raise NotImplementedError("Abstract property called") + @misc_utils.log_exception(_moduleLogger) def GetLocations(self, contacts): """ @returns {Contact: {Location Type: Location}} """ - raise NotImplementedError() + raise telepathy.errors.NotImplemented("Yet") + @misc_utils.log_exception(_moduleLogger) def RequestLocation(self, contact): """ @returns {Location Type: Location} """ - raise NotImplementedError() + raise telepathy.errors.NotImplemented("Yet") + @misc_utils.log_exception(_moduleLogger) def SetLocation(self, location): """ Since presence is based off of phone numbers, not allowing the client to change it