class LocationController(BaseController):
+ def __init__(self):
+ c.postback_url = None
+
def index(self):
return render('/location/index.mako')
def route(self):
if request.method != 'POST':
return 'You should have posted some data.'
+
+ if (c.postback_url == None):
+ c.postback_url = '/directions/json_to_kml'
# Get the contents of the uploaded files.
producers_data = request.POST['producers'].value.splitlines()
return render('location/route.mako')
+ def distance(self):
+ c.postback_url = '/directions/distances'
+ return self.route()
+