Module ImportFrom alias alias Import alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias Import alias identifier Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod NameLoad Dict Str Str Assign NameStore BinOpMod NameLoad Dict Str Str FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr TryExcept body Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Return BinOpMod NameLoad Dict Str Str NameLoad NameLoad ExceptHandler type NameLoad name NameStore body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareEq NameLoad Str body Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Return BinOpMod NameLoad Dict Str Str NameLoad NameLoad orelse If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Expr Call NameLoad Str NameLoad If CompareEq NameLoad Str body Return Call NameLoad keyword NameLoad keyword Dict Str NameLoad orelse Return BinOpMod NameLoad Dict Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad NameLoad BinOpMod Str NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad NameLoad BinOpMod Str Call AttributeLoad Str attr TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad TupleLoad Str Str Str body Assign NameStore NameLoad orelse If CompareIn NameLoad TupleLoad Str Str Str body Assign NameStore NameLoad orelse Raise Call NameLoad NameLoad BinOpMod Str NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Pass decorator_list
N/A __future__ print_function unicode_literals N/A StringIO flask request jsonify weblab.core.web weblab_api get_argument weblab.core.codes WEBLAB_GENERAL_EXCEPTION_CODE PYTHON_GENERAL_EXCEPTION_CODE N/A weblab.experiment.util Util N/A FILE_SENT file_sent N/A FILE_INFO file_info N/A SESSION_ID session_id N/A RESERVATION_ID reservation_id N/A IS_ASYNC is_async N/A BASE_HTML_TEMPLATE <?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>WebLab upload</title>
    </head>
    <body>%(MESSAGE)s</body>
</html>
 N/A SUCCESS_HTML_TEMPLATE N/A BASE_HTML_TEMPLATE N/A MESSAGE SUCCESS@%(RESULT)s N/A FAULT_HTML_TEMPLATE N/A BASE_HTML_TEMPLATE N/A MESSAGE ERROR@%(THE_FAULT_CODE)s@%(THE_FAULT_MESSAGE)s upload N/A N/A N/A N/A N/A 
    Handles file uploading. It will extract the required parameters FILE_SENT, FILE_INFO,
    SESSION_ID, and the optional parameter IS_ASYNC, and call either send_file or
    send_async_file depending on this last one.
    @return HTML defined above, with the success or failure response.
     N/A response_format N/A N/A N/A N/A N/A request args get format html lower N/A N/A N/A N/A file_info file_sent reservation_id is_async N/A _check_arguments N/A file_content N/A N/A Util serialize file_sent N/A N/A N/A weblab_api ctx reservation_id reservation_id N/A N/A is_async N/A N/A result N/A N/A N/A weblab_api api send_file file_content file_info N/A N/A result N/A N/A N/A weblab_api api send_async_file file_content file_info N/A N/A N/A FileUploadError N/A fue N/A N/A N/A code message N/A fue args N/A N/A response_format json N/A N/A N/A jsonify is_exception True message message code code N/A N/A N/A FAULT_HTML_TEMPLATE N/A THE_FAULT_CODE THE_FAULT_MESSAGE code message N/A N/A Exception N/A e N/A N/A message N/A N/A e args N/A 0 N/A N/A response_format json N/A N/A N/A jsonify is_exception True message message code PYTHON_GENERAL_EXCEPTION_CODE N/A N/A N/A FAULT_HTML_TEMPLATE N/A THE_FAULT_CODE THE_FAULT_MESSAGE PYTHON_GENERAL_EXCEPTION_CODE message N/A N/A N/A is_async N/A N/A resultstr N/A result commandstring N/A N/A resultstr result N/A N/A print [DBG] Returning result from file upload: resultstr N/A N/A response_format json N/A N/A N/A jsonify is_exception False result N/A commandstring resultstr N/A N/A N/A SUCCESS_HTML_TEMPLATE N/A RESULT resultstr N/A N/A N/A weblab_api route_web /upload/ methods N/A GET POST _check_arguments N/A N/A N/A N/A N/A 
    _check_arguments()
    Retrieves the arguments which describe the file being sent.
    These areguments are the file_sent, the file-info, the sessionid, and optionally

    @return file_info, file_sent, reservation_id, is_async
     N/A file_info N/A get_argument FILE_INFO N/A N/A file_info None N/A N/A N/A FileUploadError WEBLAB_GENERAL_EXCEPTION_CODE N/A %s argument not provided! FILE_INFO N/A file_sent N/A N/A N/A request files get FILE_SENT N/A N/A file_sent None N/A N/A file_sent N/A get_argument FILE_SENT N/A N/A file_sent None N/A N/A N/A FileUploadError WEBLAB_GENERAL_EXCEPTION_CODE N/A %s argument not provided! FILE_SENT N/A N/A sio N/A N/A StringIO StringIO N/A N/A N/A file_sent save sio N/A file_sent N/A N/A sio getvalue N/A reservation_id N/A get_argument RESERVATION_ID N/A N/A reservation_id None N/A N/A reservation_id N/A get_argument SESSION_ID N/A N/A reservation_id None N/A N/A N/A FileUploadError WEBLAB_GENERAL_EXCEPTION_CODE N/A %s argument not provided! N/A N/A  or  join N/A SESSION_ID RESERVATION_ID N/A is_async_str N/A get_argument IS_ASYNC N/A N/A is_async_str None N/A N/A is_async False N/A N/A is_async_str N/A N/A is_async_str lower N/A N/A is_async_str N/A true yes 1 N/A N/A is_async True N/A N/A N/A is_async_str N/A false no 0 N/A N/A is_async False N/A N/A N/A FileUploadError WEBLAB_GENERAL_EXCEPTION_CODE N/A %s argument is present but not valid (should be a boolean)! IS_ASYNC N/A N/A file_info file_sent reservation_id is_async N/A FileUploadError N/A Exception N/A N/A N/A