So I went through the faq and generated a widget for statistics of the
current torrents. I also sorted through what I will need to do the
flotwidget graph over time but I need to sort out where the data will be
stored and what will be fetching it first.
Patch is attached. It includes a generic json connector for getting random
json data and then doing _something_ with it. There are a couple of fixmes
in the code about whitelisting the urls the connector is allowed to visit.
A couple of questions:
- why the @classmethod decorator use in the connectors? It doesn't SEEM
to be necessary but I'm not sure if it was something I missed in my own
testing
- Related - what is the point of the registering in the
IQuery/ICall/IConnect objects? Feels like a lot of redundant typing.
- It would make life somewhat easier if there was a better way from within
a page to know where within the code it lived. I was doing a lot of
grepping to figure out where to look for other things. A trackback when in
development mode would help make finding things simpler.
Comments on the attached code welcome.
-sv