Module ImportFrom alias ImportFrom alias identifier alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr Dict Str Str NameLoad BinOpMod Str NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str If BoolOpAnd NameLoad CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad orelse Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str If NameLoad body If UnaryOpNot NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Return Call AttributeLoad NameLoad attr Dict Str NameLoad decorator_list decorator_list
N/A logging getLogger os.path join path_join dirname normpath tornado.web RequestHandler turbulenz_local.models.gamelist get_game_by_slug turbulenz_local.tools get_absolute_path create_dir N/A LOG N/A getLogger __name__ SaveFileHandler N/A RequestHandler N/A set_default_headers N/A N/A self N/A N/A N/A N/A N/A self set_header Server tz N/A post N/A N/A self slug filename N/A N/A N/A 
        Saves given contents to file to game folder.
         N/A game N/A get_game_by_slug slug N/A N/A game N/A N/A N/A N/A self set_status 404 N/A N/A N/A self finish N/A ok msg False N/A Game does not exist: %s slug N/A N/A filename N/A N/A N/A N/A self set_status 400 N/A N/A N/A self finish N/A ok msg False Missing filename N/A N/A .. filename N/A N/A N/A N/A self set_status 403 N/A N/A N/A self finish N/A ok msg False Cannot write outside game folder N/A content_type N/A N/A N/A N/A self request headers get Content-Type N/A N/A content_type N/A application/x-www-form-urlencoded content_type N/A N/A content N/A N/A self get_argument content N/A binary False N/A N/A content N/A N/A self request body N/A binary True N/A N/A N/A self request body None N/A N/A N/A self request arguments None N/A file_path N/A path_join N/A get_absolute_path N/A N/A game get_path N/A normpath filename N/A file_dir N/A dirname file_path N/A N/A N/A create_dir file_dir N/A N/A N/A N/A LOG error Failed to create directory at "%s" file_dir N/A N/A N/A self set_status 500 N/A N/A N/A self finish N/A ok msg False Failed to create directory N/A content N/A N/A N/A binary N/A N/A N/A N/A content N/A N/A content encode utf-8 N/A N/A N/A UnicodeEncodeError N/A e N/A N/A N/A N/A LOG error Failed to encode file contents: %s N/A str e N/A N/A N/A self set_status 500 N/A N/A N/A self finish N/A ok msg False Failed to encode file contents N/A N/A N/A LOG info Writing file at "%s" (%d bytes) file_path N/A len content N/A N/A N/A N/A LOG info Writing empty file at "%s" file_path N/A N/A N/A file_obj N/A open file_path wb N/A N/A N/A N/A N/A file_obj write content N/A N/A N/A N/A file_obj close N/A N/A N/A IOError N/A e N/A N/A N/A N/A LOG error Failed to write file at "%s": %s file_path N/A str e N/A N/A N/A self set_status 500 N/A N/A N/A self finish N/A ok msg False Failed to write file N/A N/A N/A self finish N/A ok True N/A N/A