On Thu, Sep 30, 2004 at 03:15:33PM -0400, Aaron Switzer wrote:
> I do agree that a "lower-level" extension point would be useful and more
> inline with OO design. I guess stripping out the HTML specific stuff
> would be a good starting point.
I couldn't make CVS diff honor the -N flag for some reason, so here is a
first cut at a new class HTTPContent, containing the non-HTML parts
formerly in Page (and a diff to Page.py).
I'd like to remove preAction and postAction from Page as well, or at
least make them be called in a more consistent fashion. Right now they
get called for _action_ style things, but not when defaultAction() is
invoked. I suggest removing Page.preAction() and Page.postAction() and
letting them fall through to the empty versions in HTTPContent, and then
consistently calling them before and after *all* actions, including
defaultAction(). Maybe this should be another diff...
Some people have a way with words, while others... erm... thingy.