From 6c580608f942d2f4b931faa6fe81171fd9e8a878 Mon Sep 17 00:00:00 2001 From: yvesf Date: Wed, 9 Jun 2010 19:41:46 +0000 Subject: bla git-svn-id: http://10.2.2.13/svn/common/ebus@1679 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- ebus/web/controller.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ebus/web/controller.py') diff --git a/ebus/web/controller.py b/ebus/web/controller.py index 406db01..f581e13 100644 --- a/ebus/web/controller.py +++ b/ebus/web/controller.py @@ -48,11 +48,10 @@ def index(req): @CacheDecorator(key=lambda args,kwargs: tuple(kwargs.keys()) + tuple(kwargs.values()), timeout=20) def json(req,sensor=None,from_date=None,till_date=None): - print "name=%s from_date=%s" % (name,from_date) + print "sensor=%s from_date=%s till_date=%s" % (sensor,from_date,till_date) return itty.Response(dump_json(data(sensor)), content_type="application/json") - @itty.get("/static/(?P.+)") def static(request,filename): file = itty.static_file(filename, root=os.path.join(os.path.dirname(__file__), 'static')) -- cgit v1.2.1