[ZPT] Problems with using ZPT and Zope 2.4b1
Joachim Werner
joe@iuveno-net.de
Sun, 24 Jun 2001 16:24:28 +0200
Hi!
I have a Zope 2.4b1 binary (Linux) running with
TAL-1.3.2.tar.gz
ZTUtils-1.0.0.tar.gz
PageTemplates-1.3.2.tar.gz
which are supposed to be the latest versions. This is what I get when I want
to add a new Page Template (URL:
http://server:8080/manage_addProduct/PageTemplates/ptAdd):
<html><head><title>Zope</title></head><body bgcolor="#FFFFFF">
<table border="0" width="100%">
<tr valign="TOP">
<td width="10%" align="center">
<img src="http://imail:13131/p_/ZButton" alt="Zope">
</td>
<td width="90%">
<h2>Zope Error</h2>
<p>Zope has encountered an error while publishing this resource.</p>
<p>
<strong>Error Type: TALESError</strong><br>
<strong>Error Value: exceptions.AttributeError on __len__ in "<PathExpr
standard:here/manage_form_title>"</strong><br>
</p>
<hr noshade>
<p>Troubleshooting Suggestions</p>
<ul>
<li>The URL may be incorrect.</li>
<li>The parameters passed to this resource may be incorrect.</li>
<li>A resource that this resource relies on may be encountering an
error.</li>
</ul>
<p>For more detailed information about the error, please
refer to the HTML source for this page.
</p>
<p>If the error persists please contact the site maintainer.
Thank you for your patience.
</p>
</td></tr>
</table>
<p><a href="http://www.zope.org/Credits" target="_top"><img
src="http://imail:13131/p_/ZopeButton" width="115" height="50" border="0"
alt="Powered by Zope" /></a></p></body></html>
<PRE>
Traceback (innermost last):
File /home/customers/testzope-13131/lib/python/ZPublisher/Publish.py, line
223, in publish_module
File /home/customers/testzope-13131/lib/python/ZPublisher/Publish.py, line
187, in publish
File /home/customers/testzope-13131/lib/python/Zope/__init__.py, line 226,
in zpublisher_exception_hook
File /home/customers/testzope-13131/lib/python/ZPublisher/Publish.py, line
171, in publish
File /home/customers/testzope-13131/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: ptAdd)
File /home/customers/testzope-13131/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: ptAdd)
File
/home/customers/testzope-13131/lib/python/Shared/DC/Scripts/Bindings.py,
line 324, in __call__
(Object: ptAdd)
File
/home/customers/testzope-13131/lib/python/Shared/DC/Scripts/Bindings.py,
line 354, in _bindAndExec
(Object: ptAdd)
File
/home/customers/testzope-13131/lib/python/Products/PageTemplates/PageTemplat
eFile.py, line 162, in _exec
(Object: ptAdd)
File
/home/customers/testzope-13131/lib/python/Products/PageTemplates/PageTemplat
e.py, line 156, in pt_render
(Object: ptAdd)
(Info: {'container': <__FactoryDispatcher__ instance at 87d7ce8>,
'here': <__FactoryDispatcher__ instance at 87d7ce8>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x881fd54>,
'nothing': None,
'options': {'args': ()},
'request':
<h3>form</h3><table></table><h3>cookies</h3
><table><tr valign="top"
align="left"><th>tree-s</th><td>'eJzTiFZ3hANP
W/VYHU0ALlYElA'</td></tr><tr valign="top"
align="left"><th>portal_skin</th><td>'Nouvell
e'</td></tr><tr valign="top"
align="left"><th>__ac_name</th><td>'joe@iuven
o-net.de'</td></tr><tr valign="top"
align="left"><th>chuckmIMPlang</th><td>'en'&l
t;/td></tr></table><h3>other</h3><table><
;tr valign="top"
align="left"><th>portal_skin</th><td>'Nouvell
e'</td></tr><tr valign="top"
align="left"><th>BASE4</th><td>'http://imail:
13131/manage_addProduct/PageTemplates/ptAdd'</td></tr><tr
valign="top"
align="left"><th>BASE3</th><td>'http://imail:
13131/manage_addProduct/PageTemplates'</td></tr><tr
valign="top"
align="left"><th>__ac_name</th><td>'joe@iuven
o-net.de'</td></tr><tr valign="top"
align="left"><th>BASE1</th><td>'http://imail:
13131'</td></tr><tr valign="top"
align="left"><th>chuckmIMPlang</th><td>'en'&l
t;/td></tr><tr valign="top"
align="left"><th>SERVER_URL</th><td>'http://i
mail:13131'</td></tr><tr valign="top"
align="left"><th>AUTHENTICATED_USER</th><td>j
oe</td></tr><tr valign="top"
align="left"><th>TraversalRequestNameStack</th><
td>[]</td></tr><tr valign="top"
align="left"><th>tree-s</th><td>'eJzTiFZ3hANP
W/VYHU0ALlYElA'</td></tr><tr valign="top"
align="left"><th>AUTHENTICATION_PATH</th><td>
''</td></tr><tr valign="top"
align="left"><th>traverse_subpath</th><td>[]&
lt;/td></tr><tr valign="top"
align="left"><th>URL3</th><td>'http://imail:1
3131'</td></tr><tr valign="top"
align="left"><th>URL0</th><td>'http://imail:1
3131/manage_addProduct/PageTemplates/ptAdd'</td></tr><tr
valign="top"
align="left"><th>URL1</th><td>'http://imail:1
3131/manage_addProduct/PageTemplates'</td></tr><tr
valign="top"
align="left"><th>URL2</th><td>'http://imail:1
3131/manage_addProduct'</td></tr><tr valign="top"
align="left"><th>PUBLISHED</th><td>&lt;Pa
geTemplateFile instance at 8827470&gt;</td></tr><tr
valign="top"
align="left"><th>URL</th><td>'http://imail:13
131/manage_addProduct/PageTemplates/ptAdd'</td></tr><tr
valign="top"
align="left"><th>BASE2</th><td>'http://imail:
13131/manage_addProduct'</td></tr><tr valign="top"
align="left"><th>BASE0</th><td>'http://imail:
13131'</td></tr><tr valign="top"
align="left"><th>URL0</th><td>http://imail:13
131/manage_addProduct/PageTemplates/ptAdd</td></tr><tr
valign="top"
align="left"><th>URL1</th><td>http://imail:13
131/manage_addProduct/PageTemplates</td></tr><tr
valign="top"
align="left"><th>URL2</th><td>http://imail:13
131/manage_addProduct</td></tr><tr valign="top"
align="left"><th>URL3</th><td>http://imail:13
131</td></tr><tr valign="top"
align="left"><th>BASE0</th><td>http://imail:1
3131</td></tr><tr valign="top"
align="left"><th>BASE1</th><td>http://imail:1
3131</td></tr><tr valign="top"
align="left"><th>BASE2</th><td>http://imail:1
3131/manage_addProduct</td></tr><tr valign="top"
align="left"><th>BASE3</th><td>http://imail:1
3131/manage_addProduct/PageTemplates</td></tr><tr
valign="top"
align="left"><th>BASE4</th><td>http://imail:1
3131/manage_addProduct/PageTemplates/ptAdd</td></tr></table&g
t;<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&g
t;993392201</td></tr><tr valign="top"
align="left"><th>SERVER_PROTOCOL</th><td>'1.1
'</td></tr><tr valign="top"
align="left"><th>SERVER_PORT</th><td>'13131'&
lt;/td></tr><tr valign="top"
align="left"><th>PATH_INFO</th><td>'/manage_a
ddProduct/PageTemplates/ptAdd'</td></tr><tr
valign="top"
align="left"><th>HTTP_HOST</th><td>'imail:131
31'</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>'/ma
nage_addProduct/PageTemplates/ptAdd'</td></tr><tr
valign="top"
align="left"><th>SCRIPT_NAME</th><td>''</t
d></tr><tr valign="top"
align="left"><th>SERVER_SOFTWARE</th><td>'Zop
e/(unreleased version, python 2.1.0, linux2)
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/g
if, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
*/*'</td></tr><tr valign="top"
align="left"><th>REMOTE_ADDR</th><td>'217.229
.54.121'</td></tr><tr valign="top"
align="left"><th>HTTP_COOKIE</th><td>'chuckmI
MPlang=en; __ac_name="joe@iuveno-net.de";
portal_skin="Nouvelle";
tree-s="eJzTiFZ3hANPW/VYHU0ALlYElA"'</td></tr><tr v
align="top"
align="left"><th>SERVER_NAME</th><td>'imail.i
uveno-net.de'</td></tr><tr valign="top"
align="left"><th>GATEWAY_INTERFACE</th><td>'C
GI/1.1'</td></tr><tr valign="top"
align="left"><th>HTTP_USER_AGENT</th><td>'Moz
illa/4.0 (compatible; MSIE 6.0b; Windows 98)'</td></tr><tr
valign="top"
align="left"><th>CONNECTION_TYPE</th><td>'Kee
p-Alive'</td></tr></table>,
'root': <Application instance at 87b3a40>,
'template': <PageTemplateFile instance at 8827470>,
'traverse_subpath': []})
File /home/customers/testzope-13131/lib/python/TAL/TALInterpreter.py, line
232, in __call__
File /home/customers/testzope-13131/lib/python/TAL/TALInterpreter.py, line
265, in interpret
File /home/customers/testzope-13131/lib/python/TAL/TALInterpreter.py, line
503, in do_insertStructure_tal
File
/home/customers/testzope-13131/lib/python/Products/PageTemplates/TALES.py,
line 283, in evaluate
File
/home/customers/testzope-13131/lib/python/Products/PageTemplates/Expressions
.py, line 213, in __call__
File
/home/customers/testzope-13131/lib/python/Products/PageTemplates/Expressions
.py, line 210, in _eval
(Info: here)
File
/home/customers/testzope-13131/lib/python/Products/PageTemplates/Expressions
.py, line 140, in render
(Object: manage_form_title)
File
/home/customers/testzope-13131/lib/python/Products/PageTemplates/ZRPythonExp
r.py, line 141, in call_with_ns
(Object: __render_with_namespace__)
File
/home/customers/testzope-13131/lib/python/Shared/DC/Scripts/Bindings.py,
line 338, in __render_with_namespace__
(Object: manage_form_title)
File
/home/customers/testzope-13131/lib/python/Shared/DC/Scripts/Bindings.py,
line 354, in _bindAndExec
(Object: manage_form_title)
File /home/customers/testzope-13131/lib/python/App/special_dtml.py, line
241, in _exec
(Object: manage_form_title)
File
/home/customers/testzope-13131/lib/python/DocumentTemplate/pDocumentTemplate
.py, line 297, in render_blocks
File
/home/customers/testzope-13131/lib/python/DocumentTemplate/DT_With.py, line
148, in render
(Object: keyword_args)
File
/home/customers/testzope-13131/lib/python/DocumentTemplate/pDocumentTemplate
.py, line 282, in render_blocks
File
/home/customers/testzope-13131/lib/python/DocumentTemplate/DT_Util.py, line
228, in eval
(Object: help_topic and help_product)
(Info: help_product)
File <string>, line 0, in ?
File /home/customers/testzope-13131/lib/python/RestrictedPython/Guards.py,
line 121, in __len__
TALESError: (see above)
</PRE>
As side note: The error message is missing the closing tags!!!!!
Joachim