Antwort: Re: [Twisted-Python] read form parameter inside a rpy-script

mmoellenbeck at plus.de mmoellenbeck at plus.de
Wed Jun 25 09:42:08 EDT 2003


Thank you ;-)

Martin Moellenbeck 





An:     twisted-python at twistedmatrix.com
Kopie: 
 

Thema:  Re: [Twisted-Python] read form parameter inside a rpy-script

 
Andrew Bennetts <andrew-twisted at puzzling.org>
Gesendet von:
twisted-python-admin at twistedmatrix.com
25.06.2003 14:41
Bitte antworten an twisted-python






On Wed, Jun 25, 2003 at 02:01:41PM +0200, mmoellenbeck at plus.de wrote:
>    Hi,
> 
>    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:

    http://twistedmatrix.com/pipermail/twisted-python/2003-June/004693.html 

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
 
    class RequestArgResource(Resource):
        def render(self, request):
            return 'request.args: ' + escape(repr(request.args))

-Andrew.


_______________________________________________
Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20030625/a6165416/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 47 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030625/a6165416/attachment.gif 


More information about the Twisted-Python mailing list