Geoff wrote:

>>The PowerPoint slides from my talk at Python10 cover this a little bit.
You
can find them on the Webware home page.<<

Yes, the slides were very useful--the contents should really be in the
documentation somewhere. I wasn't at your presentation (I'm overseas right
now), so perhaps the slides lack the verbal insight you would have given.

>>But the quick answer is, in a subclass of Page, you get the HTTPRequest
instance for the current transaction by doing self.request().  So
self.request().serverSideContextPath() should do the trick.

Similarly, self.response() gives you the HTTPResponse instance for the
current transaction.<<

This kind of stuff is useful, and ought to eventually make it into some
kind of systematic documentation about APIs... I've been reading the source
code to understand what's available to me, but it sure takes a lot of
digging around to discover what's available, where, etc. A Smalltalk style
class hierarchy browser for Python would definitely be useful!

...Edmund.


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to