pvl.verkko.rrd: fix Application(...) to super
authorTero Marttila <terom@paivola.fi>
Mon, 21 Jan 2013 18:39:53 +0200
changeset 163 96d551b90734
parent 162 80c91d019a13
child 164 2c66ab45d91e
pvl.verkko.rrd: fix Application(...) to super
pvl/verkko/rrd.py
--- a/pvl/verkko/rrd.py	Mon Jan 21 18:39:23 2013 +0200
+++ b/pvl/verkko/rrd.py	Mon Jan 21 18:39:53 2013 +0200
@@ -223,7 +223,7 @@
 # WSGI
 class Application (web.Application) :
     # dispatch
-    urls = urls.Map((
+    URLS = urls.Map((
         urls.rule('/',                              Index),
         urls.rule('/<target>',                      Target),
         urls.rule('/<path:tree>/',                  Index),
@@ -231,10 +231,12 @@
         urls.rule('/<path:tree>/<target>.png',      Graph),
     ))
 
-    def __init__ (self, rrd) :
+    def __init__ (self, rrd, **opts) :
         """
             rrd     - pvl.rrd.RRDDatabase
         """
 
+        super(Application, self).__init__(**opts)
+
         self.rrd = rrd