Yelp/Tron — pull request #104 by dnephin (2012-03-15 02:34:13+00:00)
Title: Tronview cleanup

NOTE: most of the TODOs here will be resolved in another branch that I will create a pull request for soon

This branch includes the following:

* Resolves issue #60 by allowing for a global tron config file (it also prevents the user config file from being overwritten/created by default)
* move tron.cmd (and its tests) into a couple modules under tron.commands
* completely rewrite tronview and move the display logic to tron.commands.display and create an api client under tron.commands.client . tron.commands.display uses the template pattern for objects to display tables
* tronview will now send its output through 'less' anytime its output is longer then the console height (if stdout is a tty)
* tron.www was also changed so that most of the dict building for its response comes from obj.repr_data(), and so that tronview can get nested objects without iterating over every job run, and action run. Instead it can set parameters to include that data in the initial request
* some general cleanup of the core objects
* resolves a bug with tronfig that was introduced in config_rewrite (! tags would throw exceptions since they were not being stripped before the first yaml parsing in tronfig)