web/application.py
changeset 9030 c1d5e8ca15ea
parent 9019 e08f9c55dab5
child 9031 6ff29f2879da
--- a/web/application.py	Fri Dec 07 16:10:38 2012 +0100
+++ b/web/application.py	Fri Dec 07 17:23:04 2012 +0100
@@ -253,14 +253,11 @@
     """
 
     def __init__(self, config,
-                 session_handler_fact=CookieSessionHandler,
-                 vreg=None):
+                 session_handler_fact=CookieSessionHandler):
         self.info('starting web instance from %s', config.apphome)
-        if vreg is None:
-            vreg = cwvreg.CWRegistryStore(config)
-        self.vreg = vreg
         # connect to the repository and get instance's schema
-        self.repo = config.repository(vreg)
+        self.repo = config.repository()
+        vreg = self.vreg = self.repo.vreg
         if not vreg.initialized:
             config.init_cubes(self.repo.get_cubes())
             vreg.init_properties(self.repo.properties())