/usr/local/lib/python2.4/site-packages/dataplot/bike/views.py

Go to the documentation of this file.
00001 from models import *
00002 from django.shortcuts import render_to_response
00003 
00004 def compare_locations(request,lid1,lid2):
00005     l1=Location.objects.get(id=lid1)
00006     l2=Location.objects.get(id=lid2)
00007     l1.compare(l2)
00008     l2.compare(l1)
00009     l2.hide_rplot=True
00010     data={'locs':[l1,l2]}
00011     return render_to_response('bike/location_compare.html',data)

Generated on Tue Apr 22 23:16:22 2008 for django-dataplot by  doxygen 1.4.6