Update of /cvsroot/webware/Webware/WebKit/Docs
In directory usw-pr-cvs1:/tmp/cvs-serv15191/WebKit/Docs
added Page.endResponse() which raises an EndResponse exception (defined in Application) to silently skip all further page processing (except for sleep() if called from respond()).
RCS file: /cvsroot/webware/Webware/WebKit/Docs/RelNotes-0.8.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** RelNotes-0.8.html 17 Jul 2002 15:23:07 -0000 1.11
--- RelNotes-0.8.html 22 Jul 2002 21:39:47 -0000 1.12
*** 83,86 ****
--- 83,105 ----
<li>MiscUtils.M2PickleRPC allows you to use the M2Crypto package to do SSL-secured PickleRPC requests.
+ <li> New method Page.endResponse() which does the following:
+ <li>If called from within an awake() or sleep() method, it immediately skips all further awake(), respond(), and sleep() processing and
+ sends the accumulated response.
+ <li>If called from within respond() (and this includes the writeXXX() methods called by respond()), it skips the rest of the respond()
+ processing, calls sleep(), and then sends the accumulated response. (This is because awake() must have already succeeded, so we
+ ought to call sleep() to clean up whatever awake() did.)
+ This is mainly useful if you want to call self.forward() or self.response().sendRedirect() within a deeply nested hierarchy of method calls
+ and skip the rest of your processing without having to contort your code.
+ It is implemented internally by raising an EndResponse exception which is silently caught at the appropriate place within Application.
+ Typical usage is:
+ if some_conditions_are_satisfied():
+ # or self.response().sendRedirect('somewhere')
+ # continue processing...</pre>