cmdfactory: Add 'prompt_user' for delegating user interaction
commita98a95542e2c2070bb71c3720a5ba3c410900560
authorDavid Aguilar <davvid@gmail.com>
Wed, 7 Apr 2010 03:11:34 +0000 (6 20:11 -0700)
committerDavid Aguilar <davvid@gmail.com>
Wed, 7 Apr 2010 03:11:34 +0000 (6 20:11 -0700)
tree885cfecbceaac6931ba1ec9f0d088fa205df7ddc
parent880318697048b0afd34013e8bf2c35c1aea028fd
cmdfactory: Add 'prompt_user' for delegating user interaction

The command factory now allows us to prompt for user inputs.
This is done through a "Command Wrapper" class that is installed
for each parameter that needs user interaction from a command.

This allows the commands to be decoupled from their GUI
components.  The dependencies are injected at runtime by
the GUI.  Once the wrappers are in place then commands
can prompt for input by going through the command factory.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/cmdfactory.py
test/test_cola_cmdfactory.py [new file with mode: 0644]