Re: Re: [Zope] button to submit with several parameters and call python script

2006-08-01 Thread Alan

Thanks guys, but I got another solution that worked (after some hours googling).



Cheers,
Alan

On 02/08/06, David H <[EMAIL PROTECTED]> wrote:

Alan wrote:

> Hi Dears,
>
> I am looking for ideas of how to use a submitting button to pass
> several parameters to a python script.
>
> I have googled but I found different solutions not really appropriate
> to my case I guess.
>
> I was trying something like this:
>
>  
>   
>   
>   
>  
>
> Then I defined my do_status.py with parameters jname, juser
>
>> print jname, juser
>> return printed
>
>
Try print context.REQUEST.get('jname','???')

> and nothing is printed.

David





--
Alan Wilter S. da Silva, D.Sc. - Research Associate
Department of Biochemistry, University of Cambridge.
80 Tennis Court Road, Cambridge CB2 1GA, UK.

http://www.bio.cam.ac.uk/~awd28<<

___
Zope maillist  -  Zope@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 )


Re: [Zope] button to submit with several parameters and call python script

2006-08-01 Thread David H

Alan wrote:


Hi Dears,

I am looking for ideas of how to use a submitting button to pass
several parameters to a python script.

I have googled but I found different solutions not really appropriate
to my case I guess.

I was trying something like this:

 
  
  
  
 

Then I defined my do_status.py with parameters jname, juser


print jname, juser
return printed




Try print context.REQUEST.get('jname','???')


and nothing is printed.


David

___
Zope maillist  -  Zope@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 )