From ad85e0608ea242356672fc011fe92ee3effb89e6 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 26 Sep 2009 19:02:25 -0500 Subject: [PATCH] My telepathy doesn't support it yet but giving myself a reminder to later implement location aware-ness using the area codes --- src/location.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/location.py 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() -- 1.7.9.5