[ZCM] [ZC] 179/ 3 Comment "Page Templates in Zope 2.5.0 not usable !"
Collector: Zope Bugs and Patches ...
zope-coders@zope.org
Tue, 05 Mar 2002 13:10:46 -0500
Issue #179 Update (Comment) "Page Templates in Zope 2.5.0 not usable !"
Status Pending, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/179
==============================================================
= Comment - Entry #3 by zigg on Mar 5, 2002 1:10 pm
I think this is fixed on the 2.5 branch. I can't repro this in 2.5.1b1.
FWIW, this seemed to be an issue when browsers didn't send auth automatically outside the current path, and it turned out to be another case of Zope not sending the proper response (401) when the request was unauthorized. See http://collector.zope.org/Zope/121 for another example, having to do with ZClasses, and http://bugzilla.mozilla.org/show_bug.cgi?id=110705 for an essay by me on why and how this should be fixed in Mozilla.
This can be reproduced (in 2.5.0) if you log in with http://site/manage/ instead of http://site/manage, and try to create a Page Template. In 2.5.1b1 Zope seems to properly send the 401 for this case.
________________________________________
= Comment - Entry #2 by chrisw on Jan 28, 2002 4:36 am
This looks like a problem withone someone installed ZPT 1.4 on top of Zope 2.5.
I'm gonna leave this for someone else to grab with the following aims:
- DOCUMENT THIS or it's gonna turn into a major pain in the ass
- Maybe put some code in the 2.5.0 ZPT code to check for this situation?
cheers,
Chris
________________________________________
= Request - Entry #1 by Anonymous User on Jan 27, 2002 3:15 pm
Not able to use the existing "standard_template.pt"(Page Template) or add a new Page Template - Instance.
The following error occurs:
Error Type: Undefined
Error Value: You are not allowed to access manage_page_header in this context not found in 'here/manage_page_header', at line 1, column 1
Traceback (innermost last):
File C:\PROGRA~1\ZOPE25~1.0\lib\python\ZPublisher\Publish.py, line 150, in publish_module
File C:\PROGRA~1\ZOPE25~1.0\lib\python\ZPublisher\Publish.py, line 114, in publish
File C:\PROGRA~1\ZOPE25~1.0\lib\python\Zope\__init__.py, line 158, in zpublisher_exception_hook
(Object: standard_template.pt)
File C:\PROGRA~1\ZOPE25~1.0\lib\python\ZPublisher\Publish.py, line 98, in publish
File C:\PROGRA~1\ZOPE25~1.0\lib\python\ZPublisher\mapply.py, line 88, in mapply
(Object: pt_editForm)
File C:\PROGRA~1\ZOPE25~1.0\lib\python\ZPublisher\Publish.py, line 39, in call_object
(Object: pt_editForm)
File C:\PROGRA~1\ZOPE25~1.0\lib\python\Shared\DC\Scripts\Bindings.py, line 252, in __call__
(Object: pt_editForm)
File C:\PROGRA~1\ZOPE25~1.0\lib\python\Shared\DC\Scripts\Bindings.py, line 283, in _bindAndExec
(Object: pt_editForm)
File C:\PROGRA~1\ZOPE25~1.0\lib\python\Products\PageTemplates\PageTemplateFile.py, line 94, in _exec
(Object: pt_editForm)
File C:\PROGRA~1\ZOPE25~1.0\lib\python\Products\PageTemplates\PageTemplate.py, line 86, in pt_render
(Object: pt_editForm)
(Info: {'container': <ZopePageTemplate instance at 01659E00>,
'here': <ZopePageTemplate instance at 01659E00>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 01221FB4>,
'nothing': None,
'options': {'args': ()},
'request': <h3>form</h3><table></table><h3>cookies</h3><table><tr valign="top" align="left"><th>zmi_use_css</th><td>'1'</td></tr><tr valign="top" align="left"><th>dtpref_rows</th><td>'20'</td></tr><tr valign="top" align="left"><th>zmi_top_frame</th><td>'1'</td></tr><tr valign="top" align="left"><th>tree-s</th><td>'eJyLjlZ3hANPW3UdhWhkkUhb9VggAAC9GAn5'</td></tr><tr valign="top" align="left"><th>__ac_name</th><td>'rbendit'</td></tr><tr valign="top" align="left"><th>dtpref_cols</th><td>'50'</td></tr></table><h3>lazy items</h3><table><tr valign="top" align="left"><th>SESSION</th><td><Python Method object at 011C18D0></td></tr></table><h3>other</h3><table><tr valign="top" align="left"><th>dtpref_rows</th><td>'20'</td></tr><tr valign="top" align="left"><th>__ac_name</th><td>'rbendit'</td></tr><tr valign="top" align="left"><th>dtpref_cols</th><td>'50'</td></tr><tr valign="top" align="left"><th>BASE3</th><td>'http://bendit-001.office.bendit.de:8080/standard_template.pt/pt_editForm'</td></tr><tr valign="top" align="left"><th>URL2</th><td>'http://bendit-001.office.bendit.de:8080'</td></tr><tr valign="top" align="left"><th>BASE1</th><td>'http://bendit-001.office.bendit.de:8080'</td></tr><tr valign="top" align="left"><th>BASE0</th><td>'http://bendit-001.office.bendit.de:8080'</td></tr><tr valign="top" align="left"><th>zmi_use_css</th><td>'1'</td></tr><tr valign="top" align="left"><th>SERVER_URL</th><td>'http://bendit-001.office.bendit.de:8080'</td></tr><tr valign="top" align="left"><th>zmi_top_frame</th><td>'1'</td></tr><tr valign="top" align="left"><th>AUTHENTICATED_USER</th><td>Anonymous User</td></tr><tr valign="top" align="left"><th>TraversalRequestNameStack</th><td>[]</td></tr><tr valign="top" align="left"><th>tree-s</th><td>'eJyLjlZ3hANPW3UdhWhkkUhb9VggAAC9GAn5'</td></tr><tr valign="top" align="left"><th>AUTHENTICATION_PATH</th><td>''</td></tr><tr valign="top" align="left"><th>traverse_subpath</th><td>[]</td></tr><tr valign="top" align="left"><th>URL0</th><td>'http://bendit-001.office.bendit.de:8080/standard_template.pt/pt_editForm'</td></tr><tr valign="top" align="left"><th>URL1</th><td>'http://bendit-001.office.bendit.de:8080/standard_template.pt'</td></tr><tr valign="top" align="left"><th>PUBLISHED</th><td><PageTemplateFile instance at 011D8B08></td></tr><tr valign="top" align="left"><th>URL</th><td>'http://bendit-001.office.bendit.de:8080/standard_template.pt/pt_editForm'</td></tr><tr valign="top" align="left"><th>BASE2</th><td>'http://bendit-001.office.bendit.de:8080/standard_template.pt'</td></tr><tr valign="top" align="left"><th>URL0</th><td>http://bendit-001.office.bendit.de:8080/standard_template.pt/pt_editForm</td></tr><tr valign="top" align="left"><th>URL1</th><td>http://bendit-001.office.bendit.de:8080/standard_template.pt</td></tr><tr valign="top" align="left"><th>URL2</th><td>http://bendit-001.office.bendit.de:8080</td></tr><tr valign="top" align="left"><th>BASE0</th><td>http://bendit-001.office.bendit.de:8080</td></tr><tr valign="top" align="left"><th>BASE1</th><td>http://bendit-001.office.bendit.de:8080</td></tr><tr valign="top" align="left"><th>BASE2</th><td>http://bendit-001.office.bendit.de:8080/standard_template.pt</td></tr><tr valign="top" align="left"><th>BASE3</th><td>http://bendit-001.office.bendit.de:8080/standard_template.pt/pt_editForm</td></tr></table><h3>environ</h3><table><tr valign="top" align="left"><th>HTTP_ACCEPT_ENCODING</th><td>'gzip, deflate'</td></tr><tr valign="top" align="left"><th>channel.creation_time</th><td>1012162426</td></tr><tr valign="top" align="left"><th>SERVER_PROTOCOL</th><td>'HTTP/1.1'</td></tr><tr valign="top" align="left"><th>SERVER_PORT</th><td>'8080'</td></tr><tr valign="top" align="left"><th>PATH_INFO</th><td>'/standard_template.pt/pt_editForm'</td></tr><tr valign="top" align="left"><th>HTTP_HOST</th><td>'bendit-001.office.bendit.de:8080'</td></tr><tr valign="top" align="left"><th>REQUEST_METHOD</th><td>'GET'</td></tr><tr valign="top" align="left"><th>PATH_TRANSLATED</th><td>'\\standard_template.pt\\pt_editForm'</td></tr><tr valign="top" align="left"><th>HTTP_COOKIE</th><td>'__ac_name="rbendit"; tree-s="eJyLjlZ3hANPW3UdhWhkkUhb9VggAAC9GAn5"; zmi_use_css="1"; dtpref_cols="50"; zmi_top_frame="1"; dtpref_rows="20"'</td></tr><tr valign="top" align="left"><th>SCRIPT_NAME</th><td>''</td></tr><tr valign="top" align="left"><th>SERVER_SOFTWARE</th><td>'Zope/(Zope 2.5.0 (binary release, python 2.1, win32-x86), python 2.1.2, win32) ZServer/1.1b1'</td></tr><tr valign="top" align="left"><th>HTTP_ACCEPT_LANGUAGE</th><td>'de'</td></tr><tr valign="top" align="left"><th>HTTP_ACCEPT</th><td>'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, */*'</td></tr><tr valign="top" align="left"><th>REMOTE_ADDR</th><td>'192.168.16.1'</td></tr><tr valign="top" align="left"><th>HTTP_REFERER</th><td>'http://bendit-001.office.bendit.de:8080/manage_main'</td></tr><tr valign="top" align="left"><th>SERVER_NAME</th><td>'bendit-001.office.bendit.de'</td></tr><tr valign="top" align="left"><th>GATEWAY_INTERFACE</th><td>'CGI/1.1'</td></tr><tr valign="top" align="left"><th>HTTP_USER_AGENT</th><td>'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)'</td></tr><tr valign="top" align="left"><th>CONNECTION_TYPE</th><td>'Keep-Alive'</td></tr></table>,
'root': <Application instance at 011AA1F8>,
'template': <PageTemplateFile instance at 011D8B08>,
'traverse_subpath': [],
'user': Anonymous User})
File C:\PROGRA~1\ZOPE25~1.0\lib\python\TAL\TALInterpreter.py, line 158, in __call__
File C:\PROGRA~1\ZOPE25~1.0\lib\python\TAL\TALInterpreter.py, line 191, in interpret
File C:\PROGRA~1\ZOPE25~1.0\lib\python\TAL\TALInterpreter.py, line 432, in do_insertStructure_tal
File C:\PROGRA~1\ZOPE25~1.0\lib\python\Products\PageTemplates\TALES.py, line 247, in evaluate
File C:\PROGRA~1\ZOPE25~1.0\lib\python\Products\PageTemplates\Expressions.py, line 189, in __call__
File C:\PROGRA~1\ZOPE25~1.0\lib\python\Products\PageTemplates\Expressions.py, line 179, in _eval
Undefined: (see above)
Regards
==============================================================