>>>th=Token.Token_Handler(t_type="test",srv="https://picas-lofar.grid.sara.nl:6984",uname=pc.user,pwd=pc.password,dbn=pc.database)#creates object to 'handle' Tokens
>>>th.add_overview_view()
>>>th.add_status_views()#Adds 'todo', 'done', 'locked' and 'error' views
>>>th.load_views()
>>>th.views.keys()
>>>th.reset_tokens(view_name='error')# resets all tokens in 'error' view
The Sandbox module creates a tar archive of the scripts to be distributed to the worker nodes at the launch of a PiCaS job. The location of the sandbox is stored in the PiCaS token and upon launch, it is downloaded and extracted. The sandbox is created from a configuration file which defines its name, location scrts repository and any additional processing scripts, such as prefactor.