Mercurial > p > roundup > code
diff roundup/cgi/actions.py @ 5718:842252c3ee22
Change access to config from dict to property. This makes doing the
mock for testing easier and unbreaks the changes to the tests that I
did earlier.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 11 May 2019 17:50:00 -0400 |
| parents | cad18de2b988 |
| children | 2f116ba7e7cf |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Sat May 11 17:24:58 2019 -0400 +++ b/roundup/cgi/actions.py Sat May 11 17:50:00 2019 -0400 @@ -35,7 +35,7 @@ self.base = client.base self.user = client.user self.context = templating.context(client) - self.loginLimit = RateLimit(self.db.config['WEB_LOGIN_ATTEMPTS_MIN'], timedelta(seconds=60)) + self.loginLimit = RateLimit(client.db.config.WEB_LOGIN_ATTEMPTS_MIN, timedelta(seconds=60)) def handle(self): """Action handler procedure"""
