Re: [Zope] Q: External method processing (D/H)TML forms?

2000-09-22 Thread J.R. van Ossenbruggen


> > I want to pass input from a DTML form to an external method.  So far
> > the DTML is actually just a plain HTML page:

>  try passing it the REQUEST object:
> 
> def external-method(self, REQUEST):
>"""whatever"""
> 
> 


 Just what I needed!


Thanks,

-- Jacco 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Q: External method processing (D/H)TML forms?

2000-09-22 Thread Rik Hoekstra


> 
> I want to pass input from a DTML form to an external method.  So far
> the DTML is actually just a plain HTML page:
> 
>   
>   
>   
>  
> 
> If I fill in "test" in the form, my external method is beging called
> correctly, e.g. the URL is ../external-method?foobar=test as I
> expected.
> 
> But how do I access that "foobar" value from Python in the external
> method?
> 
> It is currenly defined like:
> 
>  def external-method(self):
> # is there a self.foobar or something?
> ...
> 
> Any help will be highly appriciated by this Zope newbie!

 try passing it the REQUEST object:

def external-method(self, REQUEST):
   """whatever"""





___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Q: External method processing (D/H)TML forms?

2000-09-22 Thread J.R. van Ossenbruggen

Hi, 

I want to pass input from a DTML form to an external method.  So far
the DTML is actually just a plain HTML page:

  
  
  
 

If I fill in "test" in the form, my external method is beging called
correctly, e.g. the URL is ../external-method?foobar=test as I
expected.

But how do I access that "foobar" value from Python in the external
method?

It is currenly defined like:

 def external-method(self):
# is there a self.foobar or something?
...

Any help will be highly appriciated by this Zope newbie!

Cheers,

Jacco

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )