Re: Re : [Zope3-Users] Getting params in a request

2006-07-12 Thread Zachery Bir

On Jul 12, 2006, at 12:16 PM, Stéphane Brault wrote:


Thanks Pete,
 It was indeed what I was getting at, but since I use ajax I mostly  
don't use views,

 from there comes my ignorance ;-)


Well, you still need to wire up views, even if you're not wiring up  
*pages* ;^)


Zac

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re : [Zope3-Users] Getting params in a request

2006-07-12 Thread Stéphane Brault
Thanks Pete,
 It was indeed what I was getting at, but since I use ajax I mostly don't use 
views,
 from there comes my ignorance ;-)
 
 Stéphane

- Message d'origine 
De : Pete Taylor <[EMAIL PROTECTED]>
À : Stéphane Brault <[EMAIL PROTECTED]>; zope3-users@zope.org
Envoyé le : Mercredi, 12 Juillet 2006, 4h55mn 51s
Objet : Re: [Zope3-Users] Getting params in a request

Stephane,
do you mean how do you get the params out of the request when they
post to your page?
self.request.get('param1') should give you value1, if that's what
you're getting at...

On 7/12/06, Stéphane Brault <[EMAIL PROTECTED]> 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 ?
>
>  Thanks,
>
>  Stéphane
>
>
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
>


-- 
"All guilt is relative, loyalty counts, and never let your conscience
be your guide."
  - Lucas Buck, American Gothic



___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re : [Zope3-Users] Getting params in a request

2006-07-12 Thread Stéphane Brault
Thanks Frank,
 I didn't know it would be that simple ;-), Zope's strength I guess  ;-)
 
 Stéphane

- Message d'origine 
De : FB <[EMAIL PROTECTED]>
À : user-list zope 
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 +, 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@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users



___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Getting params in a request

2006-07-12 Thread FB
Hi,

On Wed, Jul 12, 2006 at 02:50:47PM +, 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@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Getting params in a request

2006-07-12 Thread Pete Taylor

Stephane,
do you mean how do you get the params out of the request when they
post to your page?
self.request.get('param1') should give you value1, if that's what
you're getting at...

On 7/12/06, Stéphane Brault <[EMAIL PROTECTED]> 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 ?

 Thanks,

 Stéphane


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users




--
"All guilt is relative, loyalty counts, and never let your conscience
be your guide."
 - Lucas Buck, American Gothic
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Getting params in a request

2006-07-12 Thread Stéphane Brault
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 ?
 
 Thanks,
 
 Stéphane


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users