On Wed, 2002-04-03 at 10:06, Geoffrey Talvola wrote: > In fact, you could simply ignore awake() and sleep() entirely and just > implement your own before and after methods in respond(), something like > this: > > def respond(self, trans): > self.preRespond() > try: > try: > Page.respond(self, trans) > except: > self.rollbackTransaction() > raise > else: > self.commitTransaction() > finally: > self.postRespond() > > Or whatever sequence suits your needs. Provide preRespond() and > postRespond() as needed, and just leave awake() and sleep() alone.
Yes, I'm already close to this, I might as well just go all the way -- but I think such a preResponse/postRespond would be generally better than awake/sleep, and it would be good if Accepted Webware Style directed people towards a good, flexible style. A few improvements in the builtin subclasses of Servlet (Page, SecurePage, and more such pages that don't yet exist) would be good for Webware, I think. There's things that everyone is doing, but they are all hacking them into their own SitePage. Ian _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss