Re: [Zope] Q: External method processing (D/H)TML forms?
> > 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?
> > 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?
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 )