[ZPT] Problems with authenticating macros
Tony McDonald
tony.mcdonald@ncl.ac.uk
Sun, 05 Aug 2001 22:07:36 +0100
Hi,
I have a structure
/medfac
acl_users (UserDB)
index_html (PT)
standard_look_and_feel (PT)
Index_html uses standard_look_and_feel
<html metal:use-macro="here/standard_look_and_feel/macros/master">
Standard_look_and_feel has the 'View' permission off on 'Acquire permission'
and on for 'Authenticated'.
Thing is when I try to get through to
/medfac/ (and by implication, load up index_html)
I get this error (without getting the login box);
Error Type: Undefined
Error Value: "You are not authorized to access standard_look_and_feel." not
found in "here/standard_look_and_feel/macros/master"
With this traceback
<!--
Traceback (innermost last):
File /home/zope/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line 223,
in publish_module
File /home/zope/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line 187,
in publish
File /home/zope/Zope-2.4.0-src/lib/python/Zope/__init__.py, line 226, in
zpublisher_exception_hook
(Object: LockableItem)
File /home/zope/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line 171,
in publish
File /home/zope/Zope-2.4.0-src/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: index_html)
File /home/zope/Zope-2.4.0-src/lib/python/ZPublisher/Publish.py, line 112,
in call_object
(Object: index_html)
File /home/zope/Zope-2.4.0-src/lib/python/Shared/DC/Scripts/Bindings.py,
line 324, in __call__
(Object: index_html)
File /home/zope/Zope-2.4.0-src/lib/python/Shared/DC/Scripts/Bindings.py,
line 354, in _bindAndExec
(Object: index_html)
File
/home/zope/Zope-2.4.0-src/lib/python/Products/PageTemplates/ZopePageTemplate
.py, line 244, in _exec
(Object: index_html)
File
/home/zope/Zope-2.4.0-src/lib/python/Products/PageTemplates/PageTemplate.py,
line 156, in pt_render
(Object: index_html)
File /home/zope/Zope-2.4.0-src/lib/python/TAL/TALInterpreter.py, line 232,
in __call__
File /home/zope/Zope-2.4.0-src/lib/python/TAL/TALInterpreter.py, line 265,
in interpret
File /home/zope/Zope-2.4.0-src/lib/python/TAL/TALInterpreter.py, line 578,
in do_useMacro
File /home/zope/Zope-2.4.0-src/lib/python/Products/PageTemplates/TALES.py,
line 294, in evaluate
Undefined: (see above)
-->
Do PageTemplates work differently wrt authentication?
This is src Zope 2.4.0 on Solaris.
Cheers
Tone.
--
Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 243 6140
A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope