Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Conversation

@JPrevost
Copy link
Member

closes #2

@gravesm gravesm deployed to mit-magma-pr-7 October 27, 2015 15:05 Active
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gravesm this line is a bit long but wasn't sure if you prefer the extra line for 4 chars over 80 or not.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I would use:

from flask import (Blueprint, flash, request, render_template, make_response,
                   session,)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx, will fix.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey... just checking on style here... you prefer that trailing comma?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually, if I think about it I'll leave a trailing comma. It's pretty common practice in python to do that for any list, especially those you might end up adding to later. Not required though in any sense.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@gravesm
Copy link
Contributor

gravesm commented Oct 27, 2015

👍 Thanks for functional tests.

@JPrevost
Copy link
Member Author

This was more complicated than I initially assumed mostly due to the difference in testing and real browser environments (as always) and what gets submitted when you don't supply a file for each. Once I figured out what was happening it was practically done.

This was a great way for me to jump in on a python project that wasn't already super complicated.

I'll fixup the import line, squash and merge. Thanks for the review.

@gravesm gravesm deployed to mit-magma-pr-7 October 27, 2015 15:41 Active
JPrevost added a commit that referenced this pull request Oct 27, 2015
@JPrevost JPrevost merged commit 58cae00 into master Oct 27, 2015
@JPrevost JPrevost deleted the 2_form_validation branch October 27, 2015 15:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide form validation with some sort of flash message

3 participants