[Zope-dev] External Methods and REQUEST variable

Josh Zeidner jmz_phylogenic@hotmail.com
Mon, 02 Aug 1999 23:36:21 EDT


  Currently I am working with External Methods that use the REQUEST 
variable.  I have defined a python function as :

def print_form_values(self, REQUEST=None):
	if REQUEST is not None:
		return REQUEST.form.keys()
	else:
		return [ 'NOTHING!' ]

   It should pick up variables past through POSTing,  however it does not.  
I have defined an DTML doc like this and posted a series of variables to it.

<!--#var standard_html_header-->
<h2><!--#var title_or_id--></h2>


<!--#in GetFormKeys-->
<!--#var sequence-item-->
<!--#/in-->
<!--#var expr="GetFormKeys(REQUEST)"-->
<!--#var standard_html_footer-->

   GetFormKeys is the ID of the method.  I cannot get this to work!  What am 
I doing wrong?

   -Josh Zeidner

  ps.  Is there a way for DTML methods to take arguments?





_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com