-----Original Message----- From: Chad McDaniel [mailto:chadm@sgi.com] Sent: Wednesday, April 07, 1999 2:23 PM To: zope@zope.org Subject: [Zope] Acquisition with External Methods
I'm having some trouble with calling External Methods from DTML documents. I have DTML document "Query" that defines a form with action "View". "View" is also a DTML document containing a call to an External Method: <!--#var ExtMethod -->
Ext Method would like to get access to the form values passed to View, but I can't figure out how to do it. There doesn't seem to be a way for ExtMethod to acquire the values and I can't pass them as arguments.
Try passing in the REQUEST mapping: in DTML: <!--#var "ExtMethod(REQUEST=REQUEST)"--> in Python: def ExtMethod(self, REQUEST): fv1 = REQUEST['form_var1'] fv2 = REQUEST['form_var2'] This what your looking for? -Michel
any advice?
thanks -- -chad
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )