[Zope] new user, teething problems

Gabriel Genellina gagsl-zope at yahoo.com.ar
Thu Aug 3 20:11:52 EDT 2006


At Thursday 3/8/2006 20:14, 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>

Page Templates are easier to use instead of DTML.

>   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.

This error says that there is nothing known as "date".
Have you defined it anywhere?
If you just want to show the current date, try:

<dtml-var expr="DateTime()">



Gabriel Genellina
Softlab SRL 


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas



More information about the Zope mailing list