[Zope] Zope Security Messages
Jonathan Bryant
jonathanbryant@hotmail.com
Fri, 01 Mar 2002 15:02:19
Hi,
If a user does not have permission to access an object it usually outputs
the message:
Site Error
An error was encountered while publishing this resource.
Unauthorized
(item 0): You are not authorized to access 0
In this case, I created a subfolder that inherited index_html and the
standard header and footer. I add a user to the subfolder and got this key
error message:
Sorry, a site error occurred.<p>
<!--
Traceback (innermost last):
File C:\PROGRA~1\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 223, in
publish_module
File C:\PROGRA~1\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 187, in
publish
File C:\PROGRA~1\ZOPE_T~1\lib\python\Zope\__init__.py, line 226, in
zpublisher_exception_hook
(Object: bfbw)
File C:\PROGRA~1\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 171, in
publish
File C:\PROGRA~1\ZOPE_T~1\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: index_html)
File C:\PROGRA~1\ZOPE_T~1\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: index_html)
File C:\PROGRA~1\ZOPE_T~1\lib\python\OFS\DTMLMethod.py, line 199, in
__call__
(Object: index_html)
File C:\PROGRA~1\ZOPE_T~1\lib\python\DocumentTemplate\DT_String.py, line
546, in __call__
(Object: index_html)
KeyError: standard_html_footer
Shouldn't I get an Unauthorized error message here? It seems a bit
confusing.
Jonathan Bryant
jonathanbryant@hotmail.com
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx