Re: Programmatic usage of 2.2
Iwan Vosloo <[email protected]> Thu, 08 Mar 2007 15:09:03 +0200
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Wed, 2007-03-07 at 06:56 -0800, Jonathan Ellis wrote: > On Wed, 07 Mar 2007 14:22:22 +0200, "Iwan Vosloo" <[email protected]> said: > > 3) It seems to also now expect QUERY_STRING in the Request's environment > > which previously was not necessary. > > that wasn't intentional... how so? > its not a big deal... but this is what happens if you don't have 'QUERY_STRING' in there: Unexpected exception: (please report!) Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/spyce.py", line 275, in commonHandler thespyce.spyceInit(request, response) File "/usr/lib/python2.4/site-packages/spyce.py", line 550, in spyceInit self._startModule(mod) File "/usr/lib/python2.4/site-packages/spyce.py", line 539, in _startModule mod.start() File "/usr/share/pycentral/python-spyce/site-packages/modules/request.py", line 53, in start spyce.log.debug('GET variables: %s\n', self.get()) File "/usr/share/pycentral/python-spyce/site-packages/modules/request.py", line 104, in get self._init() File "/usr/share/pycentral/python-spyce/site-packages/modules/request.py", line 138, in _init self._getInit() File "/usr/share/pycentral/python-spyce/site-packages/modules/request.py", line 101, in _getInit self._get = cgi.parse_qs(self.query(), 1) File "/usr/share/pycentral/python-spyce/site-packages/modules/request.py", line 84, in query return self._wrapper.getRequest().env()['QUERY_STRING'] File "spycememoryleakbug.py", line 14, in env return self._env[name] KeyError ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV