<br><font size=2 face="Arial">Thank you ;-)<br>
<br>
Martin Moellenbeck <br>
</font>
<hr>
<br>
<br>
<br>
<table border width=100%>
<tr>
<td>
<td><font size=1 face="sans-serif">An: &nbsp; &nbsp; &nbsp; &nbsp;twisted-python@twistedmatrix.com</font>
<br><font size=1 face="sans-serif">Kopie: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br>
<br><font size=1 face="sans-serif">Thema: &nbsp; &nbsp; &nbsp; &nbsp;Re: [Twisted-Python] read form parameter inside a rpy-script</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif"><b>Andrew Bennetts &lt;andrew-twisted@puzzling.org&gt;</b></font>
<br><font size=1 face="sans-serif">Gesendet von:</font>
<br><font size=1 face="sans-serif">twisted-python-admin@twistedmatrix.com</font>
<p><font size=1 face="sans-serif"><b>25.06.2003 14:41</b></font>
<br><font size=1 face="sans-serif">Bitte antworten an twisted-python</font>
<br>
<table>
<tr valign=top>
<td><img src=cid:_1_2C6000004D7C004B3CE5C1256D50></table>
<br>
<td></table>
<br>
<br>
<br><font size=2 face="Courier New">On Wed, Jun 25, 2003 at 02:01:41PM +0200, mmoellenbeck@plus.de wrote:<br>
&gt; &nbsp; &nbsp;Hi,<br>
&gt; <br>
&gt; &nbsp; &nbsp;I try to read form-parameter inside a rpy-script.<br>
&gt; <br>
&gt; &nbsp; &nbsp;Can anybody help me?<br>
<br>
Resource scripts have been a rather active topic of discussion on the list the<br>
past few days -- you really should check the archives. &nbsp;You probably don't want<br>
to be using them, as explained by Moshe Zadka in this post:<br>
<br>
 &nbsp; &nbsp;http://twistedmatrix.com/pipermail/twisted-python/2003-June/004693.html <br>
<br>
Regarding form parameters, you'll find them in the .args attribute of a<br>
request. &nbsp;A trivial example would be:<br>
<br>
 &nbsp; &nbsp;from twisted.web.resource import Resource<br>
 &nbsp; &nbsp;from twisted.web.microdom import escape<br>
 &nbsp; &nbsp;<br>
 &nbsp; &nbsp;class RequestArgResource(Resource):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;def render(self, request):<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return 'request.args: ' + escape(repr(request.args))<br>
<br>
-Andrew.<br>
<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
Twisted-Python@twistedmatrix.com<br>
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python<br>
</font>
<br>
<br>