[Twisted-Python] woven
hello, i am a new python programmer and i have a problem. i hope someone can help me. i have started my webserver on port 80, then i will get a url('//matlink-so-su5/Weiterleiten/Index.asp?DatumZeit=02.02.2004%22:00:00&TA=Meine%20Textadresse&langtext=MeinLangtext&Kommentar=mein%20Kommentar'). i want split this url and i should insert in this template and hand this to the HTTP server. This side should be the starting side for the user. i work with python 2.2 and twisted 1.1.1 thank you <html> <head> <title>Unbenanntes Dokument</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body,td,th { color: #000000; } body { margin-left: 12px; margin-top: 50px; margin-right: 12px; margin-bottom: 0px; } --> </style> <link href="test.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- ..Stil1 {color: #FF0000} --> </style> </head> <body> <form name="form1" method="post" action="test_file_gen.rpy"> <table width="100%" border="1" cellspacing="0" cellpadding="5"> <tr bgcolor="#FFFFCC"> <th colspan="4" valign="bottom" class="arial16bold" scope="row"><div align="left"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="bottom" class="arial16boldÜberschrift1"><div align="left"></div> <div align="left"></div> <div align="left" class="Stil1"></div> <div align="left" class="Stil1"></div> <div align="left" class="Stil1"></div> <div align="left" class="Stil1"></div> <div align="left" class="arial16boldÜberschrift1 Stil1">Einträge bearbeiten</div></td> <td><div align="right"><img src="TWKc60px.gif" width="61" height="60"></div></td> </tr> </table> </div> </th> </tr> <tr> <th width="24%" bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left"> <p>Datum</p> </div></th> <td width="45%" bgcolor="#CCCC99"> <input name="txtDatum" type="text" class="arial10" id="txtDatum" value="02.02.2004" size="15" maxlength="10"></td> <td width="16%" bgcolor="#CCCC99" class="arial12bold">AV tel. verständigt</td> <td width="15%" bgcolor="#CCCC99" class="arial12bold"> <select name="popupAVVerständigt" class="arial10" id="popupAVVerständigt"> <option>ja/nein</option> <option>ja</option> <option>nein</option> </select></td> </tr> <tr> <th bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left">Zeit</div></th> <td bgcolor="#CCCC99"> <input name="txtZeit" type="text" class="arial10" id="txtZeit" value="22:00:00" size="10"> </td><td bgcolor="#CCCC99" class="arial12bold">Einsatz erforderlich </td> <td bgcolor="#CCCC99" class="arial12bold"> <select name="popupEinsatzErforderlich" class="arial10" id="popupEinsatzErforderlich"> <option>ja/nein</option> <option>ja</option> <option>nein</option> </select></td> </tr> <tr> <th bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left">Strukturplatz</div></th> <td bgcolor="#CCCC99"> <input name="txtStrukturplatz" type="text" id="<% txtStrukturplatz %>" value=""></td> <td colspan="2" bgcolor="#CCCC99"> </td> </tr> <tr> <th bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left">Erzeugungsbereich</div></th> <td bgcolor="#CCCC99"> <input name="txtErzeugungsbereich" type="text" id="txtErzeugungsbereich" value=""></td> <td colspan="2" bgcolor="#CCCC99"> </td> </tr> <tr> <th bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left">Kraftwerksbereich</div></th> <td bgcolor="#CCCC99"> <input name="txtKraftwerksbereich" type="text" id="txtKraftwerksbereich" value=""></td> <td colspan="2" bgcolor="#CCCC99"> </td> </tr> <tr> <th bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left">Unterstandort</div></th> <td bgcolor="#CCCC99"> <input name="txtUnterstandort" type="text" id="txtUnterstandort" value=""></td> <td colspan="2" bgcolor="#CCCC99"> </td> </tr> <tr> <th bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left"></div> <div align="left">Technologische Adresse </div> </th> <td bgcolor="#CCCC99"> <input name="txtTechnologischeAdresse" type="text" id="txtTechnologischeAdresse" value="Meine Textadresse"></td> <td colspan="2" bgcolor="#CCCC99"> </td> </tr> <tr> <th bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left">Meldetext</div></th> <td colspan="3" bgcolor="#CCCC99"> <input name="txtMeldetext" type="text" id="txtMeldetext" value="MeinLangtext" size="163"></td> </tr> <tr> <th bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left">Weitergeleitet von </div></th> <td bgcolor="#CCCC99"> <select name="popupWeitergeleitetVon" size="1" id="popupWeitergeleitetVon"> <option>mike thin</option> </select></td> <td colspan="2" bgcolor="#CCCC99"> </td> </tr> <tr> <th bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left">Kommentar Warte Mitarbeiter </div></th> <td colspan="3" bgcolor="#CCCC99"> <input name="txtKommentarWarteMitarbeiter" type="text" id="txtKommentarWarteMitarbeiter" value="mein Kommentar" size="163"></td> </tr> <tr> <th bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left">Zur Kenntnis genommen von </div></th> <td bgcolor="#CCCC99"> <select name="select"> <option>king mike</option> </select></td> <td colspan="2" bgcolor="#CCCC99"> </td> </tr> <tr> <th bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left">Kommentar Anlagenverantwortlichen </div></th> <td colspan="3" bgcolor="#CCCC99"> <input name="txtKommentarAnlagenverantwortlichen" type="text" id="txtKommentarAnlagenverantwortlichen" value="" size="163"></td> </tr> <tr> <th rowspan="2" bgcolor="#FFFFCC" class="arial12bold" scope="row"><div align="left"></div> <div align="left"></div></th> <td bgcolor="#CCCC99"> </td> <td colspan="2" bgcolor="#CCCC99"> </td> </tr> <tr> <td bgcolor="#CCCC99"> </td> <td colspan="2" bgcolor="#CCCC99"> </td> </tr> <tr> <th class="arial12bold" scope="row"><div align="left"> <input name="SubmitUpdate" type="submit" class="arial12bold" id="SubmitUpdate" value="update"> <input name="SubmitDelete" type="submit" class="arial12bold" id="SubmitDelete" value="delete"> </div></th> <td bgcolor="#CCCC99"> </td> <td colspan="2" bgcolor="#CCCC99"> </td> </tr> </table> <p> </p> </form> <hr align="left" width="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="25%"><a href="http://www.google.at">Übersicht</a></td> <td width="22%"><a href="http://www.google.at">neuer Eintrag </a></td> <td width="28%"><a href="http://www.google.at">neu/bearbeiten</a></td> <td width="25%"><a href="http://www.google.at">IMS-Auftrag</a></td> </tr> </table> <hr align="left" width="100%"> </body> </html>
Kölle Wolfgang wrote:
hello, i am a new python programmer and i have a problem. i hope someone can help me. i have started my webserver on port 80, then i will get a
First of all, please use the mailing list twisted-web@twistedmatrix.com for web related issues. Second, you didn't really explain at all what does not work, or what information you need. Third, the full HTML file you included is huge and unreadable; please try to make your example files simpler and smaller. http://www.catb.org/~esr/faqs/smart-questions.html
participants (2)
-
Kölle Wolfgang
-
Tommi Virtanen