[Zope] new user, teething problems
David H
bluepaul at earthlink.net
Thu Aug 3 19:29:12 EDT 2006
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:
>
> <html>
> <title> testing</title>
> Going ! <b>asdasda </b> <br>
> <dtml-var date fmt=Date><br>
> </html>
>
> 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/publish.py",
> line 138, in publish
> result = publication.callObject(request, object)
> File
> "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/publication/zopepublication.py",
> line 161, in callObject
> return mapply(ob, request.getPositionalArguments (), request)
> File
> "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py",
> line 113, in mapply
> return debug_call(object, args)
> File
> "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py",
> line 119, in debug_call
> return object(*args)
> File
> "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/dtmlpage/browser.py",
> line 26, in index
> return template.render(REQUEST, **kw)
> File "/tmp/Zope-3.2.1/build/lib.linux-
> i686-2.4/zope/app/dtmlpage/dtmlpage.py", 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/untrusted.py",
> line 66, in __call__
> ProxyFactory(mapping),
> File
> "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_string.py",
> 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/pdocumenttemplate.py",
> line 322, in render_blocks
> section = section(md)
> File
> "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_var.py",
> 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.
>
> John
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,
David
More information about the Zope
mailing list