[Zope3-Users] Getting params in a request

FB fbo2 at gmx.net
Wed Jul 12 11:01:46 EDT 2006


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&param1=vaue1&param2=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
         


More information about the Zope3-users mailing list