-
Committer:
Rick Harding
-
Author(s):
Richard Harding
-
Date:
2012-12-10 11:58:44 UTC
-
mfrom:
(72.2.9 split_routes)
-
Revision ID:
rick.harding@canonical.com-20121210115844-befyr77xetv7m7nd
Split routes into routes.py; views into a module.
To help make it easier to work without conflicts and find things I split out
the routes into their own routes.py file. This are then pulled in during
main().
I also moved the views into a module and split up the code into related views.
It makes it easier to find and less issue with people working on views
together as there should be fewer conflicts.
Along with this, I moved all the various view helpers into a view/helpers.py
module and updated the views to use them. In the future I'd like to add tests
to these views and helpers. For now, I've ingested some data and walked the UI
throughly to make sure there aren't any issues. Lint is clean as well. Since
we're using config.scan() it also will bomb with any major issues since all of
the view files are imported during the scan.
Since the views are a module, I've updated the imports to the other parts of
charmworld to be explicit.
R=hazmat
CC=
https://codereview.appspot.com/6901051