parameters: (workspace)
return_statement: return history.split('\n')[6:]
docstring: Return a list of commands that will recover the state of a workspace.
docstring_summary: Return a list of commands that will recover the state of a workspace.
docstring_tokens: Return a list of commands that will recover the state of a workspace .
function: def get_workspace_history_list(workspace):
      """
      Return a list of commands that will recover the state of a workspace.
      """
      alg_name = "GeneratePythonScript"
      alg = AlgorithmManager.createUnmanaged(alg_name, 1)
      alg.setChild(True)
      alg.setLogging(False)
      alg.initialize()
      alg.setProperty("InputWorkspace", workspace)
      alg.setProperty("IgnoreTheseAlgs", ALGS_TO_IGNORE)
      alg.setProperty("IgnoreTheseAlgProperties", ALG_PROPERTIES_TO_IGNORE)
      alg.setPropertyValue("StartTimestamp", UsageService.getStartTime().toISO8601String())
      alg.setProperty("AppendTimestamp", True)
      alg.setProperty("AppendExecCount", True)
      alg.execute()
      history = alg.getPropertyValue("ScriptText")
      return history.split('\n')[6:]
function_tokens: def get_workspace_history_list ( workspace ) : alg_name = "GeneratePythonScript" alg = AlgorithmManager . createUnmanaged ( alg_name , 1 ) alg . setChild ( True ) alg . setLogging ( False ) alg . initialize ( ) alg . setProperty ( "InputWorkspace" , workspace ) alg . setProperty ( "IgnoreTheseAlgs" , ALGS_TO_IGNORE ) alg . setProperty ( "IgnoreTheseAlgProperties" , ALG_PROPERTIES_TO_IGNORE ) alg . setPropertyValue ( "StartTimestamp" , UsageService . getStartTime ( ) . toISO8601String ( ) ) alg . setProperty ( "AppendTimestamp" , True ) alg . setProperty ( "AppendExecCount" , True ) alg . execute ( ) history = alg . getPropertyValue ( "ScriptText" ) return history . split ( '\n' ) [ 6 : ]