John P. Looney wrote:

Hey, I've made my first page, though it's not working as I'd like. This is the contents of the page:

<title> testing</title>
 Going ! <b>asdasda </b> <br>
<dtml-var date fmt=Date><br>

 But, the error logs show that it's not happy...

 Traceback (most recent call last):
File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/", line 138, in publish
    result = publication.callObject(request, object)
File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/publication/", line 161, in callObject
    return mapply(ob, request.getPositionalArguments (), request)
File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/", line 113, in mapply
    return debug_call(object, args)
File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/", line 119, in debug_call
    return object(*args)
File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/dtmlpage/", line 26, in index
    return template.render(REQUEST, **kw)
File "/tmp/Zope-3.2.1/build/lib.linux- i686-2.4/zope/app/dtmlpage/", line 49, in render
    return self.template(self.__parent__, request, REQUEST=request, **kw)
File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/untrusted/", line 66, in __call__
File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/", line 484, in __call__
    result = render_blocks(self._v_blocks, md)
File "/tmp/Zope- 3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/", line 322, in render_blocks
    section = section(md)
File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/", line 207, in render
    raise KeyError(name)
KeyError: u'date'

Any idea what I could be doing wrong ? No dtml tag I use seems to work - all throw an error.


Where is "date" defined? If the answer is "nowhere" you really need to read the zope book. If its "somewhere" then include that code as well (pertinent parts).
Best luck,

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to