[Zope3-Users] Getting params in a request
Stéphane Brault
stephane_brault at yahoo.fr
Wed Jul 12 12:13:56 EDT 2006
Thanks Frank,
I didn't know it would be that simple ;-), Zope's strength I guess ;-)
Stéphane
----- Message d'origine ----
De : FB <fbo2 at gmx.net>
À : user-list zope <zope3-users at zope.org>
Envoyé le : Mercredi, 12 Juillet 2006, 5h01mn 46s
Objet : Re: [Zope3-Users] Getting params in a request
Hi,
On Wed, Jul 12, 2006 at 02:50:47PM +0000, Stéphane Brault wrote:
> Hi,
> for my application I need to let another site redirect its user to one of my page with an operation and some parameters, giving it this address:
> http://www.mysite.com/mypage?myOperation¶m1=vaue1¶m2=value2
> The values are filled by the other site.
> How can I do that ?
class MyPageView(BrowserView):
def __call__(self):
if 'myOperation' in self.request.form:
param1=self.request.form['param1']
param2=self.request.form['param2']
do_something(param1,param2)
MyPageView has to be either the default view asociated to the 'mypage' object or
a view called 'mypage' associated to the RootFolder object.
Regards,
Frank
_______________________________________________
Zope3-users mailing list
Zope3-users at zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
More information about the Zope3-users
mailing list