Module Expr Str Import alias alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ImportFrom alias alias alias Import alias Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body FunctionDef arguments args defaults body If CompareNotIn Str NameLoad body Return Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Str Assign NameStore BinOpMod NameLoad TupleLoad Call NameLoad NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Yield NameLoad ImportFrom alias Expr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Str Str decorator_list NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad Str keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Num
N/A N/A Demonstration of the Sijax Upload plugin.

The Sijax Upload plugin allows you to easily transform any form
on your page into a "Sijax-enabled" form. Such forms will be submitted
using Sijax (ajax upload) and the upload will be handled by your Sijax handler
function in the same way regular Sijax handler functions are called.

 N/A os sys N/A path N/A N/A N/A os path join . N/A N/A N/A os path dirname __file__ ../ N/A N/A N/A N/A sys path append path flask Flask g render_template N/A flask_sijax N/A app N/A Flask __name__ N/A N/A N/A app config N/A SIJAX_STATIC_PATH N/A N/A N/A os path join . N/A N/A N/A os path dirname __file__ static/js/sijax/ N/A N/A N/A app config N/A SIJAX_JSON_URI /static/js/sijax/json2.js N/A N/A N/A flask_sijax Sijax app SijaxHandler N/A object N/A N/A A container class for all Sijax handlers.

    Grouping all Sijax handler functions in a class
    (or a Python module) allows them all to be registered with
    a single line of code.
     _dump_data N/A N/A obj_response files form_values container_id N/A N/A dump_files N/A N/A N/A N/A N/A N/A file files N/A N/A Bad upload N/A file_data N/A files N/A file N/A file_name N/A file_data filename N/A N/A file_name None N/A N/A Nothing uploaded N/A file_type N/A file_data content_type N/A file_size N/A len N/A N/A file_data read N/A N/A Uploaded file %s (%s) - %sB N/A file_name file_type file_size N/A N/A html Form values: %s<hr />Files: %s N/A html N/A html N/A N/A str form_values N/A dump_files N/A N/A N/A obj_response html N/A #%s container_id html N/A staticmethod form_one_handler N/A N/A obj_response files form_values N/A N/A N/A N/A N/A SijaxHandler _dump_data obj_response files form_values formOneResponse N/A staticmethod form_two_handler N/A N/A obj_response files form_values N/A N/A N/A N/A N/A SijaxHandler _dump_data obj_response files form_values formTwoResponse N/A N/A N/A obj_response reset_form N/A N/A N/A obj_response html_append #formTwoResponse <br />Form elements were reset!<br />Doing some more work (2 seconds).. N/A N/A obj_response time sleep N/A N/A sleep 2 N/A N/A N/A obj_response html_append #formTwoResponse <br />Finished! N/A staticmethod N/A index N/A N/A N/A N/A N/A form_init_js N/A form_init_js N/A N/A N/A g sijax register_upload_callback formOne N/A SijaxHandler form_one_handler N/A form_init_js N/A N/A N/A g sijax register_upload_callback formTwo N/A SijaxHandler form_two_handler N/A N/A N/A g sijax is_sijax_request N/A N/A N/A N/A N/A g sijax process_request N/A N/A render_template upload.html form_init_js form_init_js N/A N/A N/A flask_sijax route app / N/A N/A __name__ __main__ N/A N/A N/A N/A app run debug True port 8080