brooklyncentral/brooklyn — pull request #63 by ahgittin (2012-05-06 05:35:12+00:00)
Title: web-console sensors view improvements

NOTE - this includes pull 62, so commit that first (but you could review together), and this has one bit where i'd like comments

adds "actions" for sensors, e.g. to open a URL in a new tab (also to show json, could be used to show graphs etc); (& shows description as tooltip instead of a column)

does this by adding a RendererHint framework from core, which is pretty good but for one bit of ugliness:

* when we define a sensor, we will sometimes want to register some RendererHint
* but it's in an interface, so we can't run static initializers cleanly
* two options i can think of
* define a rubbish extra var to hold the "result" of our initializer
* make the sensor definition uglier to do the rendering somehow

currently in the code we do the former (see in WebAppService) but would like to canvas people's ideas