X-Git-Url: http://git.maemo.org/git/?p=theonering;a=blobdiff_plain;f=src%2Flocation.py;h=59195fd82dfb3a72ef073f0c752f82094302de70;hp=54f6d8608c1a058c44ffd216180f61842ef1397c;hb=1b12decb4c375f88382cc2821c891dcc4d044c7e;hpb=613ba869ba587b74ec66c0dfd0e30978ddd11cf7 diff --git a/src/location.py b/src/location.py index 54f6d86..59195fd 100644 --- a/src/location.py +++ b/src/location.py @@ -1,11 +1,18 @@ +import logging + import telepathy +import gtk_toolbox + + +_moduleLogger = logging.getLogger('location') + -#class LocationMixin(telepathy.server.ConnectionInterfaceLocation): +#class LocationMixin(tp.ConnectionInterfaceLocation): class LocationMixin(object): def __init__(self): - #telepathy.server.ConnectionInterfaceLocation.__init__(self) + #tp.ConnectionInterfaceLocation.__init__(self) pass @property @@ -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.errors.NotImplemented("Yet") + @gtk_toolbox.log_exception(_moduleLogger) def RequestLocation(self, contact): """ @returns {Location Type: Location} """ - raise NotImplementedError() + raise telepathy.errors.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