aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/utils.py
AgeCommit message (Collapse)AuthorFilesLines
2018-11-25flake8 code cleanupJocelyn Delalande1-2/+2
Flake8 was nitpicking about: ihatemoney/forms.py:192:13: F841 local variable 'e' is assigned to but never used ihatemoney/utils.py:26:8: W605 invalid escape sequence '\w' ihatemoney/utils.py:26:10: W605 invalid escape sequence '\s' ihatemoney/utils.py:27:8: W605 invalid escape sequence '\s'
2018-08-05Remove unwanted space in utils.pyAlexis Métaireau1-1/+1
2018-07-16Merge branch 'master' into almet/fix-supervisord-templateAlexis Metaireau1-1/+26
2018-01-25API: Migrate from flask-rest to flask-restful (#315)0livd1-1/+26
The flask-rest custom json encoder is still needed and thus was added to ihatemoney's utils. Closes #298
2018-01-14Use Jinja2 strict rendering.Alexis Métaireau1-2/+17
For this I had to create an Jinja2 explicit environment, so I put a function in `ihatemoney.utils.create_jinja2_env(strict_rendering=False)`. When using this environment and if `strict_rendering` is activated, templates using undefined variables will now error out rather than failing silently.
2017-08-20Protect admin endpoints against brute force attacks (#249)0livd1-0/+39
* Protect admin endpoints against brute force attacks Add a throttling mechanism to prevent a client brute forcing the authentication form, based on its ip address Closes #245 * Reset attempt counters if they get memory hungry
2017-07-07Absolute imports & some other improvements (#243)Alexis Metaireau1-0/+133
* Use absolute imports and rename package to ihatemoney * Add a ihatemoney command * Factorize application creation logic * Refactor the tests * Update the wsgi.py module with the new create_app() function * Fix some styling thanks to Flake8. * Automate Flake8 check in the CI.