To begin, I'd like to review where I process my XML configuration file. theThe file is validated, and then a database is populated with the information. I feel like it could be improved, however (not, not included is validation and safety-checking of the user-supplied (really admin supplied) HTML from the XML doc).
user.py
- Here, I'd like some critique on my class design choices. This class is used to store user information in the database. It provides some utility functions specific to the Flask framework and its plug-ins. It works with SQL Alchemy, so I can retain Useruser info in a database. Am I storing user credentials poorly? How do theauthenticate
/name_exists
/email_exists
functions look?flaskapp.py
- this is where I do my app's route handling, build/process forms, etc. Most views are rendered with a list of dictionaries as an argument (containing for example questions, users, etc as part of the application). Is that bad design for a web application? Do I process forms in a decent manner? is there a way I can better organize all these routes? This file got sort of big fast.