Module Assign NameStore Str Import alias Import alias ImportFrom alias alias alias alias alias alias alias alias alias Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr Str keyword Str NameStore body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list AttributeLoad NameLoad attr Expr Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call NameLoad Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Return Call NameLoad Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str FunctionDef arguments args defaults body Assign NameStore NameLoad If CompareEq AttributeLoad NameLoad attr Str body If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Str orelse If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Str orelse Assign SubscriptStore NameLoad Index Str NameLoad Expr Call NameLoad Str Return Call NameLoad Call NameLoad Str Return Call NameLoad Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad Str Return Call NameLoad Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A __author__ Marina Wahl N/A os N/A sqlite3 flask Flask request session g redirect url_for abort render_template flash N/A 
    create our application
 N/A app N/A Flask __name__ N/A N/A N/A N/A app config from_object __name__ N/A 
    databse stuff
 N/A N/A N/A N/A app config update N/A dict DATABASE N/A N/A N/A os path join N/A app root_path flaskr.db DEBUG True SECRET_KEY development key USERNAME admin PASSWORD default N/A N/A N/A N/A app config from_envvar FLASKR_SETTINGS silent True connect_db N/A N/A N/A N/A N/A Connects to the specific database. N/A rv N/A N/A sqlite3 connect N/A N/A app config N/A DATABASE N/A N/A rv row_factory N/A sqlite3 Row N/A rv N/A init_db N/A N/A N/A N/A N/A N/A N/A app app_context N/A N/A db N/A get_db N/A N/A N/A app open_resource schema.sql mode r f N/A N/A N/A N/A N/A N/A db cursor executescript N/A N/A f read N/A N/A N/A db commit N/A get_db N/A N/A N/A N/A N/A N/A N/A hasattr g sqlite_db N/A N/A N/A g sqlite_db N/A connect_db N/A N/A g sqlite_db N/A close_db N/A N/A error N/A N/A N/A N/A hasattr g sqlite_db N/A N/A N/A N/A N/A g sqlite_db close N/A N/A app teardown_appcontext N/A 
    views stuff
 show_entries N/A N/A N/A N/A N/A db N/A get_db N/A cur N/A N/A db execute select title, text from entries order by id desc N/A entries N/A N/A cur fetchall N/A N/A render_template show_entries.html entries entries N/A N/A N/A app route / add_entry N/A N/A N/A N/A N/A N/A N/A N/A session get logged_in N/A N/A N/A abort 401 N/A db N/A get_db N/A N/A N/A db execute insert into entries (title, text) values (?, ?) N/A N/A N/A request form N/A title N/A N/A request form N/A text N/A N/A N/A db commit N/A N/A flash New entry was successfully posted N/A N/A redirect N/A url_for show_entries N/A N/A N/A app route /add methods N/A POST login N/A N/A N/A N/A N/A error None N/A N/A N/A request method POST N/A N/A N/A N/A N/A request form N/A username N/A N/A app config N/A USERNAME N/A N/A error Invalid username N/A N/A N/A N/A N/A request form N/A password N/A N/A app config N/A PASSWORD N/A N/A error Invalid password N/A N/A N/A session N/A logged_in True N/A N/A flash You were logged in N/A N/A redirect N/A url_for show_entries N/A N/A render_template login.html error error N/A N/A N/A app route /login methods N/A GET POST logout N/A N/A N/A N/A N/A N/A N/A session pop logged_in None N/A N/A flash You were logged out N/A N/A redirect N/A url_for show_entries N/A N/A N/A app route /logout N/A N/A __name__ __main__ N/A N/A N/A N/A app run