On 8/4/06, <b class="gmail_sendername">Gabriel Genellina</b> <<a href="mailto:gagsl-zope@yahoo.com.ar">gagsl-zope@yahoo.com.ar</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Page Templates are easier to use instead of DTML.</blockquote><div><br> True, but this is just starting off, to make sure it works.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> File<br>> "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_var.py",<br>> line 207, in render<br>> raise KeyError(name)<br>>KeyError: u'date'<br>><br>> Any idea what I could be doing wrong ? No dtml tag I use seems to
<br>> work - all throw an error.<br><br>This error says that there is nothing known as "date".</blockquote><div><br> "date" was just a DHTML page that had a static string saying 'this would be a date'.
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Have you defined it anywhere?<br>If you just want to show the current date, try:<br>
<br><dtml-var expr="DateTime()"></blockquote><div><br> Yep, even that doesn't work (see below). Oddly, when I created a page with pure HTML as index_html at the very top level, it didn't get seen as an index page. I just get a management view when I go to the top level port.
<br><br>Traceback (most recent call last):<br> File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py", line 138, in publish<br> result = publication.callObject(request, object)<br> File "/tmp/Zope-
3.2.1/build/lib.linux-i686-2.4/zope/app/publication/zopepublication.py", line 161, in callObject<br> return mapply(ob, request.getPositionalArguments(), request)<br> File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4
/zope/publisher/publish.py", line 113, in mapply<br> return debug_call(object, args)<br> File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py", line 119, in debug_call<br> return object(*args)
<br> File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/dtmlpage/browser.py", line 26, in index<br> return template.render(REQUEST, **kw)<br> File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/app/dtmlpage/dtmlpage.py", line 49, in render
<br> return self.template(self.__parent__, request, REQUEST=request, **kw)<br> File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/untrusted/untrusted.py", line 66, in __call__<br> ProxyFactory(mapping),
<br> File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_string.py", line 484, in __call__<br> result = render_blocks(self._v_blocks, md)<br> File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4
/zope/documenttemplate/pdocumenttemplate.py", line 282, in render_blocks<br> section = section(md)<br> File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/documenttemplate/dt_util.py", line 86, in eval<br>
d)<br> File "UntrustedHTML", line 1, in <expression><br>NameError: name 'DateTime' is not defined<br></div></div>