Skip to content

Conversation

@crw
Copy link

@crw crw commented Apr 5, 2017

…t cookies.

The options getters seem to be merging app config and default config as
transparently as possible so I added a helper method in utils.py,
_get_cookie_max_age, to translate the true/false value into something
meaningful for flask's set_cookie max_age parameter.

Tests have been run on Python 2.7 only! This has also been installed on
a flask app and tested manually.

…t cookies.

The options getters seem to be merging app config and default config as
transparently as possible so I added a helper method in utils.py,
_get_cookie_max_age, to translate the true/false value into something
meaningful for flask's set_cookie max_age parameter.

Tests have been run on Python 2.7 only! This has also been installed on
a flask app and tested manually.
@coveralls
Copy link

coveralls commented Apr 5, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 09ac2df on crw:master into 8f57733 on vimalloc:master.

@vimalloc vimalloc merged commit 21345d8 into vimalloc:master Apr 5, 2017
@vimalloc
Copy link
Owner

vimalloc commented Apr 5, 2017

This looks fantastic! Thanks for contributing! 👍 I will bet a new release with this pushed asap.

@crw
Copy link
Author

crw commented Apr 5, 2017

Thanks, and no problem. I'm always happy to find ways to give back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants