author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Mon, 11 Oct 2010 18:00:51 +0200 | |
changeset 6445 | 980f4415baab |
parent 6444 | cc091175d3da |
child 6446 | 878fcf10cead |
selectors.py | file | annotate | diff | comparison | revisions |
--- a/selectors.py Mon Oct 11 18:00:21 2010 +0200 +++ b/selectors.py Mon Oct 11 18:00:51 2010 +0200 @@ -495,7 +495,11 @@ try: return self._score except AttributeError: - self._score = req.vreg.config[self._key] in self._values + if req is None: + config = kwargs['repo'].config + else: + config = req.vreg.config + self._score = config[self._key] in self._values return self._score