Table of Contents

Class: state_record bkchem/undo.py

class able to store state of the whole system and then set the system back to that stored state

Methods   
__init__
clean
get_difference
record_object
record_state
set_state
undo
  __init__ 
__init__ (
        self,
        paper,
        name='',
        )

hmmm, what is supposed to be in comment for __init__?

  clean 
clean ( self )

  get_difference 
get_difference ( self,  previous )

obsolet method that finds difference between two state_records. Its too slow to be used in undo tracking so full state_record is used instead

  record_object 
record_object ( self,  o )

  record_state 
record_state ( self )

stores all necessary information about the system, so that its than able to fully recover that state.

  set_state 
set_state ( self,  previous )

sets the system to the recorded state (update is done only where necessary, not changed values are not touched).

  undo 
undo ( self,  previous )

does undo, actually only calls self.set_state


Table of Contents

This document was automatically generated on Wed Jun 1 11:05:30 2005 by HappyDoc version 2.1