diff -r bb7bd9cafacf -r 953578709324 web/webconfig.py --- 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