[ZPT] Confused.

Steve Drees drees@the-bridge.net
Fri, 18 May 2001 16:33:13 -0500


Help, I'm confused. Shouldn't this work?



Zope Version  Zope 2.3.2 (binary release, python 1.5.2, linux2-x86)
Python Version  1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3]
System Platform  linux2

PageTemplates (Installed product PageTemplates (PageTemplates-1-2-1))


<html>
  <head>
    <title tal:content="template/title">The title</title>
  </head>
  <body>
    This is Page Template <span tal:replace="template/REQUEST" />.
  </body>
</html>


viewing results in:

Error Type: KeyError
Error Value: __cmp__

<!--
Traceback (innermost last):
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 223, in publish_module
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/Zope/__init__.py,
line 221, in zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 171, in publish
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: bugs)
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 112, in call_object
    (Object: bugs)
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/Shared/DC/Scripts/Bindings
.py, line 324, in __call__
    (Object: bugs)
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/Shared/DC/Scripts/Bindings
.py, line 354, in _bindAndExec
    (Object: bugs)
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/Products/PageTemplates/Zop
ePageTemplate.py, line 247, in _exec
    (Object: bugs)
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/Products/PageTemplates/Pag
eTemplate.py, line 155, in pt_render
    (Object: bugs)
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/TAL/TALInterpreter.py,
line 198, in __call__
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/TAL/TALInterpreter.py,
line 225, in interpret
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/TAL/TALInterpreter.py,
line 327, in do_insertText
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/Products/PageTemplates/TAL
ES.py, line 294, in evaluateText
  File
/home/drees/zope/Zope-2.3.2-linux2-x86/lib/python/ZPublisher/HTTPRequest.py,
line 884, in __getitem__
KeyError: (see above)

--
Steve Drees
SysAdmin/Software Developer/Web Geek/Chief Bottle Washer
"A problem well-stated is a problem half-solved."
http://stve.wejustrock.com