Hello all,
I am currently designing a small project that I would like to implement
in CherryPy. The ultimate end point is to have a system that displays
the scores in different categories from a trampolining competition
during that competition. I intend to have the scores displayed in a
browser displaying pages from a local CherryPy server.
I have most of the planning done. I will have a single page from which
I will import the data (in csv from the scoring program) and alter some
other minor settings. What then needs to be done is display the scores
split into the different categories.
What I have decided to do is produce multiple pages, one for each
category, and then loop through them automatically.
My specific problem relates to how I get each page to automatically load
the next page.
I could use the following in the generated html:
<META HTTP-EQUIV=REFRESH CONTENT="5;URL=
http://nextpage">
and alter the URL as needed but this seems to me to be a bit of a kludge
and I was wondering if there was a specific feature in CherryPy that
would help achieve my reloading aims?
Having worked through the tutorials I did consider that I may be able to
use Aspects and _after() in particular to load the next page after a
delay. On reflection though, I don't think I can as _after() needs to
return before the original requested page is served?
I unfortunately haven't been able to think of any other ideas after
going though the tutorials and other documentation.
I do appreciate that the entire project would be more easily achieved in
a short straight-Python script, but I would like an easy project to
learn some of the ways of web applications development and in particular
CherryPy and this seemed a practical and useful way.
Thank you for your time,
Russell Bungay