[ZPT] ZPT release 1.3: troubles...
jmr@computing.com
jmr@computing.com
Tue, 22 May 2001 13:38:09 -0500 (CDT)
evan> It's not dying on the content of your template, it's dying
evan> trying to render ptEdit, more specifically when it tries to
evan> fetch manage_page_header from the current context. What sort of
evan> container is "master_page" in?
master_page is a page template in the root folder. =
I've just noticed something else (which I believe is new behaviour
since I've upgraded ZPT) -- don't know if it's related or not. When
master_page is called by itself via the web (although that's not it's
intended purpose) I get an error:
...
<STRONG>Error Type: Undefined</STRONG><BR>
<STRONG>Error Value: "You are not authorized to access <em>title</em>.=
" not found in "here/title"</STRONG><BR> =
...
<!--
Traceback (innermost last):
File /usr/local/share/zope-2.3.2/lib/python/ZPublisher/Publish.py, lin=
e 223, in publish_module
File /usr/local/share/zope-2.3.2/lib/python/ZPublisher/Publish.py, lin=
e 187, in publish
File /usr/local/share/zope-2.3.2/lib/python/Zope/__init__.py, line 221=
, in zpublisher_exception_hook
(Object: Traversable)
File /usr/local/share/zope-2.3.2/lib/python/ZPublisher/Publish.py, lin=
e 171, in publish
File /usr/local/share/zope-2.3.2/lib/python/ZPublisher/mapply.py, line=
160, in mapply
(Object: master_page)
File /usr/local/share/zope-2.3.2/lib/python/ZPublisher/Publish.py, lin=
e 112, in call_object
(Object: master_page)
File /usr/local/share/zope-2.3.2/lib/python/Shared/DC/Scripts/Bindings=
.py, line 324, in __call__
(Object: master_page)
File /usr/local/share/zope-2.3.2/lib/python/Shared/DC/Scripts/Bindings=
.py, line 354, in _bindAndExec
(Object: master_page)
File /usr/local/share/zope-2.3.2/lib/python/Products/PageTemplates/Zop=
ePageTemplate.py, line 244, in _exec
(Object: master_page)
File /usr/local/share/zope-2.3.2/lib/python/Products/PageTemplates/Pag=
eTemplate.py, line 154, in pt_render
(Object: master_page)
File /usr/local/share/zope-2.3.2/lib/python/TAL/TALInterpreter.py, lin=
e 215, in __call__
File /usr/local/share/zope-2.3.2/lib/python/TAL/TALInterpreter.py, lin=
e 242, in interpret
File /usr/local/share/zope-2.3.2/lib/python/TAL/TALInterpreter.py, lin=
e 458, in do_defineMacro
File /usr/local/share/zope-2.3.2/lib/python/TAL/TALInterpreter.py, lin=
e 242, in interpret
File /usr/local/share/zope-2.3.2/lib/python/TAL/TALInterpreter.py, lin=
e 388, in do_insertText
File /usr/local/share/zope-2.3.2/lib/python/Products/PageTemplates/TAL=
ES.py, line 303, in evaluateText
File /usr/local/share/zope-2.3.2/lib/python/Products/PageTemplates/TAL=
ES.py, line 287, in evaluate
Undefined: (see above)
-->
This occurs when only when I am authenticated; not when I'm anonymous.
(master_page forces different behaviour, but it used to render in both
cases..) I have the Manager role...
Here is the full content of master_page, if it turns out to be useful
to look at it:
<html xmlns:tal=3D"http://xml.zope.org/namespaces/tal"
xmlns:metal=3D"http://xml.zope.org/namespaces/metal"
metal:define-macro=3D"master">
<head>
<title tal:content=3D"here/title">The title</title>
<div metal:define-slot=3D"header">
<!-- meta tags and other header things here -->
</div>
<div tal:condition=3D"python:request.BASE2[-6:] !=3D 'member' and =
request.AUTHENTICATED_USER.getUserName() !=3D 'Anonymous User'"
tal:define=3D"targ string:/member${request/PATH_INFO}"
tal:replace=3D"python:request.response.redirect(targ)">
Members are forced to /member/blah
</div>
</head> =
<body background=3D"images/dcsi_background.jpg" bgcolor=3D"#ffffff" vlin=
k=3D"#3300bb" link=3D"#3300bb" alink=3D"#d3d3d3" marginwidth=3D"0" margi=
nheight=3D"0">
<span metal:use-macro=3D"here/standard_fragments/macros/nav_header">
<div align=3D"center">
<table background=3D"dcsi_bg.jpg" width=3D"795" height=3D"79" align=3D"c=
enter">
<tr><td>
<table align=3D"right" width=3D"520" cellpadding=3D"2" cellspacing=3D"=
3" background=3D"none">
<tr>
<td width=3D"102"><a href=3D"index.html"><font color=3D"#5A5A5A" face=3D=
"bookman old style"><b>Home</b></font></a></td>
<td width=3D"102"><a href=3D"services.html"><font color=3D"#5A5A5A" fa=
ce=3D"bookman old style"><b>Services</b></font></a></td>
<td width=3D"102"><a href=3D"support.html"><font color=3D"#5A5A5A" fac=
e=3D"bookman old style"><b>Support</b></font></a></td>
<td width=3D"102"></td>
<td width=3D"102"><a href=3D"contacts.html"><font color=3D"#5A5A5A" fa=
ce=3D"bookman old style"><b>Contact Us</b></font></a></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td width=3D"102"><a href=3D"sign_up.html"><font color=3D"#5A5A5A" fac=
e=3D"bookman old style"><b>Sign-Up</b></font></a>
</td>
<td width=3D"102">
<a href=3D"/login.html"><b><font color=3D"#5A5A5A" face=3D"bookman old=
style">
Login</font></b></a>
</td>
<td> </td>
</tr>
</table>
</td></tr></table> =
</div>
</span>
<div metal:define-slot=3D"main">
If you supply a tag with a 'fill-macro=3D"main"' attribute
when using this macro, that tag will replace this text.
</div>
<!-- Begin Footer -->
<table background=3D"images/footer_bkg.jpg" width=3D"100%">
<tr>
<td align=3D"center"><b><a href=3D"index_html">Home</a> - <a href=3D"se=
rvices.html">Services</a> - <a href=3D"support.html">Support</a> - <a hr=
ef=3D"sign_up.html">Sign-Up</a> - <a href=3D"contacts.html">Contact Us</=
a></b></td>
</tr>
</table>
=
<div align=3D"center"><font size=3D"-1">Copyright =A92001 Distributed Co=
mputing Specialists, Inc. All rights reserved. <a href=3D"privacypo=
licy.html">Privacy Statement</a></font></div>
<img src=3D"images/mcp_sys_eng.gif" width=3D"135" height=3D"45" alt=3D""=
border=3D"0">
<!-- End Footer -->
</body>
</html>