web/webconfig.py
changeset 6066 953578709324
parent 6012 d56fd78006cd
parent 6061 7cb29eab1c9d
child 6139 f76599a96238
--- a/web/webconfig.py	Mon Aug 02 15:37:45 2010 +0200
+++ b/web/webconfig.py	Wed Aug 04 11:13:11 2010 +0200
@@ -227,11 +227,7 @@
             return self.__repo
         except AttributeError:
             from cubicweb.dbapi import get_repository
-            if self.repo_method == 'inmemory':
-                repo = get_repository('inmemory', vreg=vreg, config=self)
-            else:
-                repo = get_repository('pyro', self['pyro-instance-id'],
-                                      config=self)
+            repo = get_repository(self.repo_method, vreg=vreg, config=self)
             self.__repo = repo
             return repo