At 09:44 AM 7/20/2001 -0700, Craig Kattner wrote:
>When processing a form using actions (as registered through actions()) it
>looks
>to me like the appropriate action handler is called in the place of
>writeBody()
>by writeHTML(). Is this the case? How do action handlers work?
>
>The docs suggest using the action handler to invoke writeHTML (which I am not
>doing), but I still get output suggesting writeHTML was called...
There are preAction() and postAction() methods in Page that get called
before the actual action method. By default these write the top and bottom
of the page which is why you feel like writeHTML() is being called. You can
see this if you read WebKit.Page.handleAction().
In practice, I always end up doing:
def preAction(self):
pass
def postAction(self):
pass
in my SitePage, so I'm beginning to wonder if these should be passes in
Page as well. Any votes?
-Chuck
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss