X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Flocation.py;h=71868ba19ec3a0c0daecb930d09f12729e2e6152;hb=b88c8bef6b10e97db6d75e6fbaba8447092a758e;hp=196525555fea34962fdf35d437dfc2266eb39ce9;hpb=a6498a3dd1db8b4379713ebda993dd6b3ec86b08;p=theonering diff --git a/src/location.py b/src/location.py index 1965255..71868ba 100644 --- a/src/location.py +++ b/src/location.py @@ -1,30 +1,42 @@ +import logging + import telepathy +import gtk_toolbox + + +_moduleLogger = logging.getLogger('location') + -class LocationMixin(telepathy.server.ConnectionInterfaceLocation): +#class LocationMixin(telepathy.server.ConnectionInterfaceLocation): +class LocationMixin(object): def __init__(self): - telepathy.server.ConnectionInterfaceLocation.__init__(self) + #telepathy.server.ConnectionInterfaceLocation.__init__(self) + pass @property - def gvoice_backend(self): + def session(self): """ @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