[Twisted-Python] read form parameter inside a rpy-script
andrew-twisted at puzzling.org
Wed Jun 25 08:41:03 EDT 2003
On Wed, Jun 25, 2003 at 02:01:41PM +0200, mmoellenbeck at plus.de wrote:
> I try to read form-parameter inside a rpy-script.
> Can anybody help me?
Resource scripts have been a rather active topic of discussion on the list the
past few days -- you really should check the archives. You probably don't want
to be using them, as explained by Moshe Zadka in this post:
Regarding form parameters, you'll find them in the .args attribute of a
request. A trivial example would be:
from twisted.web.resource import Resource
from twisted.web.microdom import escape
def render(self, request):
return 'request.args: ' + escape(repr(request.args))
More information about the Twisted-Python