KeyError: 'URL' in HTTPRequest using zope2.7-py2.3.3
hello all, i'm running into a wierd zope/plone error. it is the same error as the "RESPONSE eaten" post at: http://mail.zope.org/pipermail/zope-dev/2003-November/020952.html i asked the poster for help since there were no followups, but unfortunately he would not help me and told me he was not my personal helpdesk. these posters had a similar issue/solution: http://mail.zope.org/pipermail/zope-dev/2004-February/021793.html but i cannot find a similar culprit. any help would be much appreciated. below is my traceback. thanks a million, brian w. -------------------- Traceback (most recent call last): File "E:\NBCJEAP\Zope\lib\python\zExceptions\ExceptionFormatter.py", line 157, in formatLine result.extend(self.formatSupplement(supp, tb)) File "E:\NBCJEAP\Zope\lib\python\zExceptions\ExceptionFormatter.py", line 105, in formatSupplement extra = self.formatExtraInfo(supplement) File "E:\NBCJEAP\Zope\lib\python\zExceptions\ExceptionFormatter.py", line 231, in formatExtraInfo extra = getInfo(1) File "E:\NBCJEAP\Zope\lib\python\Products\PageTemplates\TALES.py", line 277, i n getInfo s = pprint.pformat(data) File "E:\NBCJEAP\Python\lib\pprint.py", line 58, in pformat return PrettyPrinter().pformat(object) File "E:\NBCJEAP\Python\lib\pprint.py", line 109, in pformat self._format(object, sio, 0, 0, {}, 0) File "E:\NBCJEAP\Python\lib\pprint.py", line 127, in _format rep = self._repr(object, context, level - 1) File "E:\NBCJEAP\Python\lib\pprint.py", line 191, in _repr self._depth, level) File "E:\NBCJEAP\Python\lib\pprint.py", line 203, in format return _safe_repr(object, context, maxlevels, level) File "E:\NBCJEAP\Python\lib\pprint.py", line 246, in _safe_repr vrepr, vreadable, vrecur = saferepr(v, context, maxlevels, level) File "E:\NBCJEAP\Python\lib\pprint.py", line 286, in _safe_repr rep = `object` File "E:\NBCJEAP\Zope\lib\python\ZPublisher\HTTPRequest.py", line 1295, in __r epr__ return "<%s, URL=%s>" % (self.__class__.__name__, self['URL']) File "E:\NBCJEAP\Zope\lib\python\ZPublisher\HTTPRequest.py", line 1214, in __g etitem__ raise KeyError, key KeyError: 'URL' -- ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/
Brian Watson wrote at 2005-12-1 20:55 -0500:
brian w. -------------------- Traceback (most recent call last): File "E:\NBCJEAP\Zope\lib\python\zExceptions\ExceptionFormatter.py", line 157, in formatLine result.extend(self.formatSupplement(supp, tb)) File "E:\NBCJEAP\Zope\lib\python\zExceptions\ExceptionFormatter.py", line 105, in formatSupplement extra = self.formatExtraInfo(supplement) File "E:\NBCJEAP\Zope\lib\python\zExceptions\ExceptionFormatter.py", line 231, in formatExtraInfo extra = getInfo(1) File "E:\NBCJEAP\Zope\lib\python\Products\PageTemplates\TALES.py", line 277, i n getInfo ... File "E:\NBCJEAP\Zope\lib\python\ZPublisher\HTTPRequest.py", line 1295, in __r epr__ return "<%s, URL=%s>" % (self.__class__.__name__, self['URL']) File "E:\NBCJEAP\Zope\lib\python\ZPublisher\HTTPRequest.py", line 1214, in __g etitem__ raise KeyError, key KeyError: 'URL'
The "request" in your PageTemplate context lacks an "URL". "URL" is set in the "HTTPRequest"s constructor ("__init__"). If an "HTTPRequest" instance lacks "URL" this means either: * the instance was created in a wrong way (contructor not called) * "URL" was deleted after construction. Unfortunately, the details you have provided does not allow to say more about this problem. -- Dieter
participants (2)
-
Brian Watson -
Dieter Maurer