Module Import alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return BinOpAdd Str Call AttributeLoad Str attr GeneratorExp BinOpMod Str TupleLoad Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Print Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Return Call NameLoad Call NameLoad Str Return Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad Return Call NameLoad Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword Num
N/A N/A os.path flask Flask redirect request url_for flask.ext.sqlalchemy SQLAlchemy flask.ext.storage get_default_storage_class flask.ext.uploads delete init save Upload N/A app N/A Flask __name__ N/A N/A N/A app config N/A SQLALCHEMY_DATABASE_URI sqlite:////tmp/test.db N/A N/A N/A app config N/A DEFAULT_FILE_STORAGE filesystem N/A N/A N/A app config N/A UPLOADS_FOLDER N/A N/A N/A N/A os path realpath . /static/ N/A N/A N/A app config N/A FILE_SYSTEM_STORAGE_FILE_VIEW static N/A db N/A SQLAlchemy app N/A Storage N/A get_default_storage_class app N/A N/A init db Storage N/A N/A N/A db create_all index N/A N/A N/A N/A N/A List the uploads. N/A uploads N/A N/A N/A Upload query all N/A N/A <a href="/upload">New Upload</a><br> N/A N/A join N/A N/A <a href="%s">%s</a><form action="/delete/%s" method="POST">  <button type="submit">Delete</button></form><br> N/A N/A N/A N/A Storage url N/A u name N/A u name N/A u id N/A u uploads N/A N/A N/A app route / upload N/A N/A N/A N/A N/A Upload a new file. N/A N/A N/A request method POST N/A N/A saving N/A N/A save N/A N/A request files N/A upload N/A N/A redirect N/A url_for index N/A <form method="POST" enctype="multipart/form-data">  <input name="upload" type="file">  <button type="submit">Upload</button></form> N/A N/A N/A app route /upload methods N/A GET POST remove N/A N/A id N/A N/A N/A Delete an uploaded file. N/A upload N/A N/A N/A Upload query get_or_404 id N/A N/A delete upload N/A N/A redirect N/A url_for index N/A N/A N/A app route /delete/<int:id> methods N/A POST N/A N/A __name__ __main__ N/A N/A N/A N/A app run port 8000