Module Import alias identifier ImportFrom alias ImportFrom alias Import alias identifier Import alias Import alias ImportFrom alias Import alias identifier Import alias identifier Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr While BoolOpAnd AttributeLoad NameLoad attr CompareGt BinOpAdd NameLoad NameLoad Call AttributeLoad NameLoad attr body If NameLoad body Print Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num If AttributeLoad NameLoad attr body Return Str If AttributeLoad NameLoad attr body Return TupleLoad Str Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareNotEq AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Return Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return Str decorator_list Call NameLoad Str Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Return BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body If AttributeLoad NameLoad attr body Return Str If AttributeLoad NameLoad attr body Return BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Return BinOpMod Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body If UnaryOpNot AttributeLoad NameLoad attr body Return Str If Call AttributeLoad AttributeLoad NameLoad attr attr body Return Str Return Str Return Str decorator_list Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If NameLoad body Print Str Return Str decorator_list Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Return Str decorator_list Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str If NameLoad body Print Str Expr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Print Str Print Call NameLoad AttributeLoad NameLoad attr Print AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Print Str Expr Call AttributeLoad NameLoad attr If NameLoad body Print Str If CompareEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str If NameLoad body Print Str Assign NameStore Call AttributeLoad NameLoad attr While Call AttributeLoad AttributeLoad NameLoad attr attr body If NameLoad body Print Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad Num body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Print Str handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Slice NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad Raise Call NameLoad Str decorator_list decorator_list
N/A N/A weblab.experiment.experiment Experiment voodoo.override Override voodoo.log logged N/A voodoo.log log N/A uuid N/A time voodoo.threaded threaded N/A weblab.experiment.devices.vm.manager VirtualMachineManager N/A experiments.vm.user_manager.manager UserManager N/A DEBUG False N/A DEBUG_NOT_PREPARE False N/A CFG_URL vm_url N/A CFG_VM_TYPE vm_vm_type N/A CFG_USER_MANAGER_TYPE vm_user_manager_type N/A CFG_SHOULD_STORE_IMAGE vm_should_store_image N/A CFG_ESTIMATED_LOAD_TIME vm_estimated_load_time N/A PWD_LENGTH 8 N/A DEFAULT_URL rdp://localhost:6667 N/A DEFAULT_VM_TYPE VirtualMachineDummy N/A DEFAULT_USER_MANAGER_TYPE DummyUserManager N/A DEFAULT_SHOULD_STORE_IMAGE True N/A DEFAULT_ESTIMATED_LOAD_TIME 15 N/A TIME_WAITING_START 10 VMExperiment N/A N/A Experiment Experiment N/A __init__ N/A N/A self coord_address locator cfg_manager N/A args kwargs N/A N/A N/A N/A N/A super VMExperiment self __init__ args kwargs N/A N/A self _cfg_manager cfg_manager N/A N/A N/A self read_base_config N/A N/A self session_id None N/A N/A self vm N/A N/A N/A self find_vm_manager N/A self vm_type N/A self _cfg_manager N/A N/A self user_manager_class N/A N/A self find_user_manager N/A self user_manager_type N/A N/A self user_manager None N/A N/A self is_ready False N/A N/A self is_error False N/A N/A self error None N/A N/A self _start_t None N/A N/A self _dispose_t None N/A read_base_config N/A N/A self N/A N/A N/A 
        Reads the base config parameters from the config file. More parameters will be read through
        the same manager from the actual Virtual Machine Manager, and some may be implementation-specific.
         N/A N/A self url N/A N/A N/A self _cfg_manager get_value CFG_URL DEFAULT_URL N/A N/A self vm_type N/A N/A N/A self _cfg_manager get_value CFG_VM_TYPE DEFAULT_VM_TYPE N/A N/A self user_manager_type N/A N/A N/A self _cfg_manager get_value CFG_USER_MANAGER_TYPE DEFAULT_USER_MANAGER_TYPE N/A N/A self should_store_image N/A N/A N/A self _cfg_manager get_value CFG_SHOULD_STORE_IMAGE DEFAULT_SHOULD_STORE_IMAGE N/A N/A self estimated_load_time N/A N/A N/A self _cfg_manager get_value CFG_ESTIMATED_LOAD_TIME DEFAULT_ESTIMATED_LOAD_TIME N/A do_get_api N/A N/A self N/A N/A N/A 1 N/A N/A Override N/A Experiment Experiment N/A logged info do_start_experiment N/A N/A self N/A args kwargs N/A N/A 
        Callback run when the experiment is started. After the starting
        thread finishes successfully, it will set is_ready to True.
         N/A um N/A self user_manager N/A N/A um None N/A N/A N/A N/A um cancel N/A initial N/A N/A time time N/A N/A N/A self is_ready N/A N/A initial TIME_WAITING_START N/A N/A time time N/A N/A DEBUG N/A N/A is_ready: N/A self is_ready N/A N/A N/A time sleep 0.1 N/A N/A self is_ready N/A N/A Already started and ready N/A N/A self is_error N/A N/A N/A Can't start. Error state:  N/A str N/A self error N/A N/A N/A N/A self _start_t None N/A N/A N/A self _start_t isAlive N/A N/A Already starting N/A N/A self session_id N/A N/A self generate_session_id N/A N/A self _start_t N/A N/A self handle_start_exp_t N/A Starting N/A N/A logged info N/A Override N/A Experiment Experiment do_send_command_to_device N/A N/A self command N/A N/A N/A 
        Callback run when the client sends a command to the experiment
        @param command Command sent by the client, as a string.
         N/A N/A command get_configuration N/A N/A N/A N/A N/A self url      with password:  N/A self session_id N/A N/A N/A command is_ready N/A N/A N/A self is_ready N/A N/A 1 N/A N/A self is_error N/A N/A N/A 3;%s N/A str N/A self error N/A N/A 0;%s N/A self estimated_load_time N/A N/A N/A command is_alive N/A N/A N/A N/A self is_ready N/A N/A 0 N/A N/A N/A N/A self vm is_alive_vm N/A N/A 1 N/A 0 N/A cmd_not_supported N/A N/A Override N/A Experiment Experiment N/A logged info do_send_file_to_device N/A N/A self content file_info N/A N/A N/A  
        Callback for when the client sends a file to the experiment
        server. Currently unused for this experiment, should never get 
        called.
         N/A DEBUG N/A N/A [VMExperiment] do_send_file_to_device called N/A NOP N/A N/A Override N/A Experiment Experiment N/A logged info do_dispose N/A N/A self N/A N/A N/A 
        Callback to perform cleaning after the experiment ends.
         N/A N/A N/A self handle_dispose N/A Disposing N/A N/A Override N/A Experiment Experiment N/A logged info handle_start_exp_t N/A N/A self N/A N/A N/A 
        Executed on a work thread, will prepare the VM for use, and unless an exception is raised, 
        will not return until it's fully ready (and then it will set the is_ready attribute). 
         N/A DEBUG N/A N/A t_starting N/A N/A N/A self ensure_vm_not_started N/A N/A DEBUG_NOT_PREPARE N/A N/A N/A N/A N/A self vm prepare_vm N/A DEBUG N/A N/A t_prepared N/A N/A type N/A self vm N/A N/A self vm_type N/A N/A N/A N/A self vm launch_vm N/A DEBUG N/A N/A t_launched N/A N/A N/A self setup N/A DEBUG N/A N/A t_setup N/A N/A N/A self is_error True N/A N/A N/A self is_ready False N/A N/A N/A self is_ready True N/A N/A threaded ensure_vm_not_started N/A N/A self N/A N/A N/A 
        Though it should never happen, this function makes sure that the VM is not already
        running, which would prevent proper initialization.
         N/A DEBUG N/A N/A ensure_vm_not_started N/A start_time N/A N/A time time N/A N/A N/A N/A self vm is_alive_vm N/A N/A DEBUG N/A N/A VM is alive. Killing... N/A N/A N/A N/A self vm kill_vm N/A elapsed N/A N/A N/A time time start_time N/A N/A elapsed 20 N/A N/A N/A Exception It was not possible to ensure that the machine is powered off N/A handle_dispose N/A N/A self N/A N/A N/A 
        Executed on a work thread, will handle clean-up.
         N/A N/A N/A self user_manager None N/A N/A N/A N/A N/A self user_manager cancel N/A N/A N/A N/A self vm kill_vm N/A N/A self should_store_image N/A N/A N/A N/A N/A self vm store_image N/A N/A self is_ready False N/A N/A self error None N/A N/A self is_error False N/A N/A self _start_t None N/A N/A self user_manager None N/A load_user_manager N/A N/A self N/A N/A N/A N/A self user_manager N/A N/A self user_manager_class N/A self _cfg_manager N/A setup N/A N/A self N/A N/A N/A  Configures the VM  N/A N/A N/A self load_user_manager N/A N/A N/A N/A N/A N/A self user_manager configure N/A self session_id N/A DEBUG N/A N/A t_configured N/A N/A N/A Exception N/A ex N/A N/A N/A self error ex N/A N/A self is_error True N/A N/A N/A log log VMExperiment N/A N/A log level Error N/A Error configuring user manager: %s ex N/A N/A N/A log log_exc VMExperiment N/A N/A log level Warning N/A generate_session_id N/A N/A self N/A N/A N/A  Generates and returns a unique id  N/A  TODO: Use SessionGenerator  N/A id N/A N/A uuid uuid1 N/A idstr N/A N/A N/A id get_hex N/A PWD_LENGTH N/A idstr N/A find_user_manager N/A N/A self name N/A N/A N/A 
        Returns the class of the User Manager with the specified name.
        @param name __name__ of the class (not the fully qualified one)
         N/A subclasses N/A N/A N/A UserManager UserManager __subclasses__ N/A sc subclasses N/A N/A N/A N/A sc __name__ name N/A N/A sc N/A N/A Exception Could not find an implementation for the specified User Manager. Make sure the
            class name specified is not the fully-qualified one, and that it is present in the module's
            __all__ list. N/A find_vm_manager N/A N/A self name N/A N/A N/A 
        Returns the class of the VM manager with the specified name.
        @param name __name__ of the class (not the fully qualified one)
         N/A subclasses N/A N/A N/A VirtualMachineManager VirtualMachineManager __subclasses__ N/A sc subclasses N/A N/A N/A N/A sc __name__ name N/A N/A sc N/A N/A Exception Could not find an implementation for the specified VM. Make sure the
            class name specified is not the fully-qualified one, and that it is present in the module's
            __all__ list. N/A N/A