~frankban/juju-quickstart/prepare-for-pypi

Viewing all changes in revision 38.

  • Committer: Francesco Banconi
  • Date: 2013-12-19 09:36:29 UTC
  • mfrom: (36.1.11 env-manage-selection-view)
  • Revision ID: francesco.banconi@canonical.com-20131219093629-4dtii8m4r3u7qv3i
Environment list/selection view.

This branch implements the environment
selection Urwid view. It is possible to
start it running `make` and then
`./cli-app-demo.py`. This is still not
integrated in quickstart, but the demo
file demonstrates how to show the view
passing the required data structures
already implemented in the 
quickstart.models.envs module.

To test the branch, run `make check`.

To QA the new functionality, run the
demo application as described above, 
and play with the interface: any UX
suggestion is welcome, and will be part
of a card we already have 
("envs management: ux improvements").

Other changes:

The Urwid application is no longer an 
ObjectDict (removed from the code).
I decided to use a Python namedtuple
which seemed to me a better choice,
considering that views are not supposed 
to modify the app data structure.
This way we have both immutability and
attribute access to the object.

Implemented a TimeoutText wrapper used to
wrap the message notification widget.
This wayt he timer is restarted when a 
subsequent message is set and the previous 
has not yet been removed.

R=rharding, gary.poster
CC=
https://codereview.appspot.com/43860044

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: