#3 Error Value: name 'RESPONSE' is not defi

closed-fixed
nobody
None
5
2001-10-08
2001-10-07
Anonymous
No

After instanciating my accounts product (built using
WarpFramework), I get this error, when I to "view" one
of my accounts:

Error Type: NameError
Error Value: name 'RESPONSE' is not defined

Traceback (innermost last):
File
/home/erik/development/zope-farm/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py,
line 223, in publish_module
File
/home/erik/development/zope-farm/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py,
line 187, in publish
File
/home/erik/development/zope-farm/Zope-2.4.1-src/lib/python/Zope/__init__.py,
line 226, in zpublisher_exception_hook
(Object: api)
File
/home/erik/development/zope-farm/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py,
line 171, in publish
File
/home/erik/development/zope-farm/Zope-2.4.1-src/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: index_html)
File
/home/erik/development/zope-farm/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: index_html)
File
/home/erik/development/zope-farm/2.3.3/Zope-2.4.1-linux2-x86/lib/python/Products/WarpFramework/object_manager_interface.py,
line 79, in index_html
(Object: api)
File
/home/erik/development/zope-farm/2.3.3/Zope-2.4.1-linux2-x86/lib/python/Products/WarpFramework/role_based_interfaces.py,
line 75, in __call__
File
/home/erik/development/zope-farm/Zope-2.4.1-src/lib/python/DocumentTemplate/DT_String.py,
line 546, in __call__
(Object: <string>)
File
/home/erik/development/zope-farm/Zope-2.4.1-src/lib/python/OFS/DTMLMethod.py,
line 187, in __call__
(Object: standard_html_header)
File
/home/erik/development/zope-farm/Zope-2.4.1-src/lib/python/DocumentTemplate/DT_String.py,
line 546, in __call__
(Object: standard_html_header)
File
/home/erik/development/zope-farm/Zope-2.4.1-src/lib/python/DocumentTemplate/DT_Util.py,
line 231, in eval
(Object: RESPONSE.setHeader('Expires', 'Sun, 28 Dec
1997 09:32:45 GMT'))
(Info: RESPONSE)
File <string>, line 0, in ?
NameError: (see above)

I'm using stock Zope-2.4.1 and latest WarpFramework
checkout. I have not modified my standard_html_* files.

Discussion

  • Logged In: YES
    user_id=68005

    Okay, try to use <dtml-var "get_response().setHeader[....]"> ?

    Add it to the diff if it works?

     
    • status: open --> closed-fixed