On Wednesday February 20, 2002 01:41 am, Edmund Lian wrote: > Chuck, > > >>You should also review the summaries of the classes so you can see what > > their methods are. These come with your local docs.<< > > Thanks... I've actually been doing this. But the class summaries did not > show why a subclass of Page would have a HTTPRequest instance available as > self.request(). [Newbie question here...] Is it because it is a mix-in, or > because Application passes the transaction object to it?
Nothing that fancy. HTTPRequest is sort-of hardwired into Application. I say sort-of because in the constructor for Application, you could pass in a different request class to be used. There's nothing exposed in a configuration file that would make it easy to use a different class though. Application calls servlet.awake(transaction). Page's awake() stores the transaction object in self so that it can provide the convenience methods self.request(), etc. - Geoff _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
