[blipit] r167 committed - Removing handlers

0 views
Skip to first unread message

bli...@googlecode.com

unread,
Jan 16, 2011, 8:46:34 AM1/16/11
to bli...@googlegroups.com
Revision: 167
Author: dipt...@gmail.com
Date: Sun Jan 16 05:45:54 2011
Log: Removing handlers
http://code.google.com/p/blipit/source/detail?r=167

Deleted:
/trunk/blipitsms/geocoder/handlers
Modified:
/trunk/blipitsms/geocoder/blip.py
/trunk/blipitsms/geocoder/tasks.py
/trunk/blipitsms/settings.py

=======================================
--- /trunk/blipitsms/geocoder/blip.py Sun Jan 16 00:53:32 2011
+++ /trunk/blipitsms/geocoder/blip.py Sun Jan 16 05:45:54 2011
@@ -19,10 +19,11 @@
self['creatorId'] = creatorId

import urllib2, json
+from django.conf import settings

class BlipItPost:

- url = "http://blipitsvc.appspot.com/blipit/panic/blip"
+ url = settings.BLIPIT_SVC_PANIC_URL

def __init__(self, blip):
self.blip = blip
=======================================
--- /trunk/blipitsms/geocoder/tasks.py Sun Jan 16 00:53:32 2011
+++ /trunk/blipitsms/geocoder/tasks.py Sun Jan 16 05:45:54 2011
@@ -7,7 +7,7 @@

@task
def scan_channels():
- req = urllib2.urlopen(settings.BLIPIT_SVC_URL)
+ req = urllib2.urlopen(settings.BLIPIT_SVC_CHANNELS_URL)
json_data = json.loads(req.read())
for channel in json_data:
channel_id = channel['key']['id']
=======================================
--- /trunk/blipitsms/settings.py Sat Jan 15 23:53:11 2011
+++ /trunk/blipitsms/settings.py Sun Jan 16 05:45:54 2011
@@ -95,10 +95,14 @@
},
}

-BLIPIT_SVC_URL = "http://blipitsvc.appspot.com/blipit/panic/channel"
+BLIPIT_SVC_URL = "http://blipitsvc.appspot.com/blipit/"

GEOCODER_SVC_URL
= "http://maps.googleapis.com/maps/api/geocode/json?sensor=true&address="

+BLIPIT_SVC_CHANNELS_URL = BLIPIT_SVC_URL + "panic/channel"
+
+BLIPIT_SVC_PANIC_URL = BLIPIT_SVC_URL + "panic/blip"
+
# this rapidsms-specific setting defines which views are linked by the
# tabbed navigation. when adding an app to INSTALLED_APPS, you may wish
# to add it here, also, to expose it in the rapidsms ui.

Reply all
Reply to author
Forward
0 new messages