pvl/verkko/wsgi.py
changeset 178 f9f5e669bace
parent 177 b21b2efe1e6c
child 179 706972d09f05
equal deleted inserted replaced
177:b21b2efe1e6c 178:f9f5e669bace
     1 import pvl.web
       
     2 
       
     3 import logging; log = logging.getLogger('pvl.verkko.wsgi')
       
     4 
       
     5 from pvl.verkko import urls, db as database
       
     6 
       
     7 class Application (pvl.web.Application) :
       
     8     URLS  = urls.urls
       
     9 
       
    10     def __init__ (self, db, **opts) :
       
    11         """
       
    12             Initialize app with db.
       
    13         """
       
    14 
       
    15         super(Application, self).__init__(**opts)
       
    16 
       
    17         self.db = database.Database(db)
       
    18