[Zope] set HTTP response in a python script

2006-12-22 Thread Daniel de la Cuesta
Hello, How can I set a valid http response inside a python script? Thank you! Daniel de la Cuesta Navarrete Técnico de Desarrollo FUNDACIÓN IAVANTE [EMAIL PROTECTED] Tel. 951 015 300 Este correo electrónico y, en su caso, cualquier fichero anexo, contiene información

[Zope] special characters in XML

2006-12-15 Thread Daniel de la Cuesta
Hello, I am using a page template to geneate a valid XML document, this is the template: ?xml version=1.0 encoding=UTF-8? person xmlns:tal=http://xml.zope.org/namespaces/tal; name tal:content=string:hello Mi mobile /name /person The caracter gives me the following error:

[Zope] conditional python expresion inside ZPT

2006-12-05 Thread Daniel de la Cuesta
Hello, How can I insert a conditional python expresion inside a ZPT. Example: if (my_expresion): toreturn = a else: toreturn = b return toretun Thank you! ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

[Zope] Specifying the target language with i18n

2006-11-24 Thread Daniel de la Cuesta
Hello, I am trying to set the target language using i18n:target label Example: p i18n:translate= i18n:target=string:en label_search /p It doesn't work. I cannot specify the target language. I am in Zope 2.9.4. Thank you.

Re: [Zope] Re: Specifying the target language with i18n

2006-11-24 Thread Daniel de la Cuesta
It is not necesary. Anyway, if I specify my domain nothing happens. - Mensaje original De: Josef Meile [EMAIL PROTECTED] Para: zope@zope.org Enviado: viernes, 24 de noviembre, 2006 13:03:31 Asunto: [Zope] Re: Specifying the target language with i18n Hi Daniel, Hello, I am trying

Re: [Zope] i18n tags in XML file using Page Templates

2006-11-13 Thread Daniel de la Cuesta
The error message is the following:!-- Page Template Diagnostics Compilation failed xml.parsers.expat.ExpatError: unbound prefix: line 7, column 20--Line 7 is exctly where the i18n tag is- Mensaje original De: Andreas Jung [EMAIL PROTECTED]Para: Daniel de la Cuesta [EMAIL PROTECTED]; zope

[Zope] i18n tags in XML file using Page Templates

2006-11-12 Thread Daniel de la Cuesta
Hieverybody, I am want to return an XMLfile with i18n tags using a page template. For example: ?xml version="1.0" encoding="UTF-8"? language xmlns:tal="http://xml.zope.org/namespaces/tal" value i18n:translate=""My value/value/language When I use the i18n taginside

[Zope] Path expression in Python based script

2006-09-29 Thread Daniel de la Cuesta
Hi, I am beginner working with Zope. I like it but I have some doubts:I have an structure with folders and subfoulders, each folder and subfolder has items.I want to go round this structre with a Python based script, to know the number of elements i do the