[ZPT] Re: ZPT, ZSQL Method and Python script

Wade Leftwich wade at lightlink.com
Sat May 10 14:49:25 EDT 2003


> Date: Sat, 10 May 2003 8:53:09 -0000
> From: Dr_w <dr_w at macunlimited.net>
> Subject: RE: [ZPT] Re: ZPT, ZSQL Method and Python script
> To: <zpt at zope.org>
> Message-ID: <E19EPAL-0001hN-00 at avalon.netcom.net.uk>
> Content-Type: text/plain; charset="iso-8859-1";
> 
> Thanks for this.  The script is now calling the Z SQL method and inserting
> the data.
> 
> However, I'm not sure how to call the receipt page.  The python script
> returns a reference to the page template but not the page template itself.
> 
> The  relevant code is:
> 
> return container.updateDB_rcpt
> 
> How can I get a rendered page rather than a reference
> 
> <ZopePageTemplate at updateDB_rcpt>?
> 
> Yours
> 
> James
> 
> ps.  I could do this without thought in PHP but want to try Zope because (in
> theory) Zope looks so much more straightforward!
> 

Simple!
return container.updateDB_rcpt()  # note the parens

Keep working with Zope, you'll be glad you did.

-- Wade Leftwich
Ithaca, NY




More information about the ZPT mailing list