Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Dict Str Str SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Index Num Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body With Call NameLoad BinOpAdd NameLoad NameLoad Str NameStore body For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Dict Assign NameStore Str TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Assign NameStore Dict NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return SubscriptLoad NameLoad Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise NameLoad Return NameLoad decorator_list NameLoad
N/A N/A 
This module should handle all the asynchronous tasks
of OpenDevelop.
 __future__ absolute_import celery shared_task django.template.loader get_template django.template Context sandboxes.models Sandbox N/A json N/A os N/A time create_script N/A N/A commands N/A N/A N/A template N/A get_template start.sh N/A c N/A Context N/A commands last_cmd N/A commands N/A -1 N/A commands N/A -1 N/A N/A N/A template render c N/A run_code N/A N/A sandbox cmd files N/A N/A N/A 
    This function is supposed to
    1. Create the sandbox bucket
    2. Create the sandbox container
    3. Start the sandbox container
     N/A directory N/A /etc/opendevelop/buckets/%s/ N/A sandbox id N/A data_dir N/A directory data/ N/A N/A N/A os makedirs data_dir N/A N/A key val N/A N/A files iteritems N/A N/A N/A open N/A data_dir key wb+ destination N/A N/A chunk N/A N/A val chunks N/A N/A N/A N/A destination write chunk N/A N/A open N/A N/A N/A os path join directory start w script N/A N/A N/A N/A script write N/A create_script cmd N/A img N/A N/A sandbox image docker_image_name N/A volumes N/A /var/opendevelop/bucket N/A N/A docker_cmd /bin/sh /var/opendevelop/bucket/start N/A N/A N/A client N/A N/A sandbox docker_server api N/A container_id N/A N/A client create_container image img command docker_cmd volumes volumes N/A N/A N/A Exception N/A e N/A N/A e N/A N/A sandbox container_id N/A container_id N/A Id N/A N/A N/A sandbox save N/A binds N/A directory /var/opendevelop/bucket N/A N/A N/A client start container_id binds N/A N/A container_id N/A Id N/A shared_task kill_sandb N/A N/A c_id timeout N/A N/A N/A N/A N/A sandbox N/A N/A N/A Sandbox objects get container_id c_id N/A client N/A N/A sandbox docker_server api N/A N/A N/A time sleep N/A int timeout N/A N/A N/A client kill N/A sandbox container_id N/A N/A N/A Exception N/A e N/A N/A e N/A True N/A shared_task