[hg] galaxy 3740: Secure=True by default for workflows.
details: http://www.bx.psu.edu/hg/galaxy/rev/68fc85a43bb8 changeset: 3740:68fc85a43bb8 user: Dannon Baker <dannon.baker@emory.edu> date: Tue May 04 14:19:44 2010 -0400 description: Secure=True by default for workflows. diffstat: lib/galaxy/workflow/modules.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diffs (26 lines): diff -r 9057a05dc7d3 -r 68fc85a43bb8 lib/galaxy/workflow/modules.py --- a/lib/galaxy/workflow/modules.py Tue May 04 13:45:57 2010 -0400 +++ b/lib/galaxy/workflow/modules.py Tue May 04 14:19:44 2010 -0400 @@ -96,7 +96,7 @@ module.state = dict( name="Input Dataset" ) return module @classmethod - def from_dict( Class, trans, d, secure=False ): + def from_dict( Class, trans, d, secure=True ): module = Class( trans ) state = from_json_string( d["tool_state"] ) module.state = dict( name=state.get( "name", "Input Dataset" ) ) @@ -172,11 +172,11 @@ module.state = module.tool.new_state( trans, all_pages=True ) return module @classmethod - def from_dict( Class, trans, d, secure=False ): + def from_dict( Class, trans, d, secure=True ): tool_id = d['tool_id'] module = Class( trans, tool_id ) module.state = DefaultToolState() - module.state.decode( d["tool_state"], module.tool, module.trans.app, secure=False ) + module.state.decode( d["tool_state"], module.tool, module.trans.app, secure=secure ) module.errors = d.get( "tool_errors", None ) return module
participants (1)
-
Nate Coraor