[Zope] opening a ZPT from a script

Leticia Larrosa LETICIA at tesla.cujae.edu.cu
Fri Mar 11 13:57:53 EST 2005


Thanks to Chris for response me, and I want that him excuse me, because I 
have an imprecision, and I feel very embarrassed because in the 
"The Zope Book (2.6 Edition) 
Amos Latteier, Michel Pelletier, Chris McDonough, Peter Sabaini" 
the example is: 
"
pt = context.hello_world_pt 
s = pt(name="John Doe") 
return s 
" 
And I asume that when I call a ZPT without parameters is: "return 
context.hello_world_pt", whereas whit parameters are same that the example. 

In spite of the above the "return context.hello_world_pt" in some cases 
works ok, and in others case return the zope object reference, instead of 
make a call to the object (in this case a ZPT). 
Thanks to Chris Withers 
Thanks to all !!!! 


-----Original Message----- 
From: Chris Withers To: Leticia Larrosa 
Cc: zope at zope.org Date: Fri, 11 Mar 2005 15:25:46 +0000 Subject: 
Re: [Zope] opening a ZPT from a script > 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 > 
_______________________________________________ > Zope maillist - 
Zope at 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 ) > > 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20050311/574b98d1/attachment.htm


More information about the Zope mailing list