branch | stable |
changeset 6061 | 7cb29eab1c9d |
parent 5934 | 6ccaaf04cfbc |
child 6066 | 953578709324 |
child 6109 | 47d9c0e0f7b7 |
--- a/web/webconfig.py Tue Aug 03 14:43:20 2010 +0200 +++ b/web/webconfig.py Wed Aug 04 10:22:11 2010 +0200 @@ -238,11 +238,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