Broke out Hooke.run and Hooke.run_lines into HookeRunner.
authorW. Trevor King <wking@drexel.edu>
Sun, 16 May 2010 13:53:53 +0000 (09:53 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 16 May 2010 13:53:53 +0000 (09:53 -0400)
commitea537e738fddb19b55a3ec72edf58130a6e57f8f
treedab6ca725cdfc1c415a691a87e2577ce9bf8a4f4
parent07dda3e11adf448e31ce80a5dbf713960262a91c
Broke out Hooke.run and Hooke.run_lines into HookeRunner.

This allows the main process access to the command process' possibly
altered Hooke instance.  For example:
  >>> h = Hooke()
  >>> r = HookeRunner()
  >>> h = r.run_lines(h, ['load_playlist test/data/test'])
  >>> h = r.run_lines(h, ['curve_info --all=True'])
With the old implementation, second run_lines() call would fail
because the playlist was only loaded in the first command process'
Hooke instance, not the Hooke instance that the main (UI) process
held.
hooke/engine.py
hooke/hooke.py
test/load_playlist.py