From: Ed Page Date: Sun, 27 Sep 2009 00:02:25 +0000 (-0500) Subject: My telepathy doesn't support it yet but giving myself a reminder to later implement... X-Git-Url: http://git.maemo.org/git/?p=theonering;a=commitdiff_plain;h=ad85e0608ea242356672fc011fe92ee3effb89e6 My telepathy doesn't support it yet but giving myself a reminder to later implement location aware-ness using the area codes --- diff --git a/src/location.py b/src/location.py new file mode 100644 index 0000000..0a4594b --- /dev/null +++ b/src/location.py @@ -0,0 +1,25 @@ +import telepathy + + +class TheOneRingLocation(telepathy.server.ConnectionInterfaceLocation): + + def __init__(self): + telepathy.server.ConnectionInterfaceLocation.__init__(self) + + def GetLocations(self, contacts): + """ + @returns {Contact: {Location Type: Location}} + """ + raise NotImplementedError() + + def RequestLocation(self, contact): + """ + @returns {Location Type: Location} + """ + raise NotImplementedError() + + def SetLocation(self, location): + """ + Since presence is based off of phone numbers, not allowing the client to change it + """ + raise telepathy.errors.PermissionDenied()