[Zope] Parameter syntax for page template output

Tino Wildenhain tino at wildenhain.de
Wed Mar 2 04:56:50 EST 2005


Am Mittwoch, den 02.03.2005, 16:53 +1100 schrieb Sean Kemplay:
> Could you set the id in the request before calling
> context.some_folder.folder_contents()?


Better:

context.some_folder.folder_contents(id='text_id',param2='value2')
and so on.


> ie
> request.set('id', 'test_id')
> context.some_folder.folder_contents()
> Sean
> 
> On Wed, 2005-03-02 at 01:33 -0400, David Pratt wrote:
> > Hi.  I am able to capture the content from a page template
> > in a Script Python like this:
> > 
> > template_html = context.some_folder.folder_contents()
> > 
> > But I have a page template that I am wanting to capture output from 
> > that requires parameters passed
> > - normally like this after the template name ?id=test_id
> > 
> > Can someone suggest the correct syntax for doing this as in the example 
> > above.   I am wanting to use
> > a Script Python as opposed to wget or urllib
> > 
> > Regards,
> > David
> > 
> > _______________________________________________
> > 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 )
> > 
> 
> _______________________________________________
> 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 )
> 
-- 
Tino Wildenhain <tino at wildenhain.de>



More information about the Zope mailing list