Re: [Zope] opening a ZPT from a script
--- Leticia Larrosa <LETICIA@tesla.cujae.edu.cu> wrote:
Hi all: I have the following script: "return context.ss" and in the same folder have a ZPT named ss whose html code is: "hi" testing my script I obtain the following message: "<ZopePageTemplate at ss>" instead of the web page with the text "hi", any idea why? I use zope2.7 thanks in advance Leticia
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
try return context.ss() __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
Thanks to John Blair, I try "return context.ss()" and works ok. I find this logic, but in many examples, and in others script that i make i use the "return context.ss" and works ok to. Besides in the Zope Book the examples are "return context.ss". Any idea? Thanks lot to John Blair. Thanks to all. -----Original Message----- From: john blair <mailtome200420032002@yahoo.com> To: Leticia Larrosa <LETICIA@tesla.cujae.edu.cu>, zope@zope.org Cc: Date: Wed, 9 Mar 2005 20:36:43 -0800 (PST) Subject: Re: [Zope] opening a ZPT from a script
--- Leticia Larrosa <LETICIA@tesla.cujae.edu.cu> wrote:
Hi all: I have the following script: "return context.ss" and in the same folder have a ZPT named ss whose html code is: "hi" testing my script I obtain the following message: "<ZopePageTemplate at ss>" instead of the web page with the text "hi", any idea why? I use zope2.7 thanks in advance Leticia
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
try return context.ss()
__________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Leticia Larrosa wrote:
"return context.ss" and works ok to. Besides in the Zope Book the examples are "return context.ss".
Where? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Chris Withers -
john blair -
Leticia Larrosa