import os from WebKit.Page import Page
class environ(Page): def writeContent(self): attrs = os.environ.keys() attrs.sort() self.write('<ul>\n') for attr in attrs: self.write('<li><b>%s</b>: %s</li>\n' % (attr, os.environ[attr])) self.write('</ul>\n')
But this shows none of the regular information such as 'REMOTE_ADDR', 'HTTP_HOST', 'HTTP_REFERER', etc. Has anyone had this happen to them? I do get a 'REMOTEHOST' variable which shows what 'REMOTE_ADDR' used to show...
You want self.request().environ() -- you are getting the environment that the AppServer was created with, not the environment for the specific request you are handling.
This did the trick. Thanks! It's amazing that after using Webware for so long that there are things here and there that I just plain forget...
--Tracy
------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
