Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Usersuite #392

Open
lukasjuhrich opened this issue Nov 9, 2018 · 0 comments
Open

Refactor Usersuite #392

lukasjuhrich opened this issue Nov 9, 2018 · 0 comments

Comments

@lukasjuhrich
Copy link
Collaborator

Following and slightly agreeing with the codeclimate report on usersuite.py, it might be good to resolve some of the mentioned issues.

For instance, a lot of repetition could be cut down by introducing a context manager in a manner like that:

@bp.route('/route')
def route():
    with process_form(LoginForm):
        # the stuff that usually comes after `validate_on_submit`
    return render_template('route.html', foo="bar")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant