parameters: (workflow, document, status_dict)
docstring: Change the state of the object.
docstring_summary: Change the state of the object.
docstring_tokens: Change the state of the object .
function: def _updateWorkflowHistory(workflow, document, status_dict):
    """
    Change the state of the object.
    """
    if workflow.getPortalType() in ('Interaction Workflow', 'InteractionWorkflowDefinition'):
      return
  
    # Create history attributes if needed
  
    if getattr(aq_base(document), 'workflow_history', None) is None:
      document.workflow_history = PersistentMapping()
      # XXX this _p_changed is apparently not necessary
      document._p_changed = 1
  
    # Add an entry for the workflow in the history
    workflow_key = workflow.getReference()
    if not document.workflow_history.has_key(workflow_key):
      document.workflow_history[workflow_key] = ()
  
    # Update history
    document.workflow_history[workflow_key] += (status_dict,)
function_tokens: def _updateWorkflowHistory ( workflow , document , status_dict ) : if workflow . getPortalType ( ) in ( 'Interaction Workflow' , 'InteractionWorkflowDefinition' ) : return # Create history attributes if needed if getattr ( aq_base ( document ) , 'workflow_history' , None ) is None : document . workflow_history = PersistentMapping ( ) # XXX this _p_changed is apparently not necessary document . _p_changed = 1 # Add an entry for the workflow in the history workflow_key = workflow . getReference ( ) if not document . workflow_history . has_key ( workflow_key ) : document . workflow_history [ workflow_key ] = ( ) # Update history document . workflow_history [ workflow_key ] += ( status_dict , )