X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Flocation.py;fp=src%2Flocation.py;h=4151b9ca0536edd5876ab2475bc3b276c8d06deb;hb=536383bef66ff5afccedea9a68dfc15aeb8bf875;hp=54f6d8608c1a058c44ffd216180f61842ef1397c;hpb=59327fe23f05616d0976777d00ae0024f2ea0265;p=theonering diff --git a/src/location.py b/src/location.py index 54f6d86..4151b9c 100644 --- a/src/location.py +++ b/src/location.py @@ -1,5 +1,12 @@ +import logging + import telepathy +import gtk_toolbox + + +_moduleLogger = logging.getLogger('location') + #class LocationMixin(telepathy.server.ConnectionInterfaceLocation): class LocationMixin(object): @@ -13,20 +20,23 @@ class LocationMixin(object): """ @abstract """ - raise NotImplementedError() + raise NotImplementedError("Abstract property called") + @gtk_toolbox.log_exception(_moduleLogger) def GetLocations(self, contacts): """ @returns {Contact: {Location Type: Location}} """ - raise NotImplementedError() + raise telepathy.NotImplemented("Yet") + @gtk_toolbox.log_exception(_moduleLogger) def RequestLocation(self, contact): """ @returns {Location Type: Location} """ - raise NotImplementedError() + raise telepathy.NotImplemented("Yet") + @gtk_toolbox.log_exception(_moduleLogger) def SetLocation(self, location): """ Since presence is based off of phone numbers, not allowing the client to change it