<div dir="ltr">+1 za urlparse</div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-10 12:43 GMT+00:00 Petr Blahos <span dir="ltr"><<a href="mailto:petrblahos@gmail.com" target="_blank">petrblahos@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Asi budu v menšině, ale parsovat a znovu skládat - to bych v tomto případě nedělal.<div><br></div><div><span style="color:rgb(0,0,0);font-size:12.8px">separator = "&" if "?"</span><span style="color:rgb(0,0,0);font-size:12.8px"> in </span><span style="color:rgb(0,0,0);font-size:12.8px">reload_redirect['<wbr>Location'] else "?"</span><br></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">
<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">reload_redirect['Location']</span> += separator + "param=1"<br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="font-size:12.8px">--</span><br></div><div class="gmail_extra"><div><div class="m_-7365375192647727182gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="font-size:12.8px"><a href="http://petr.blahos.com/" target="_blank">
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><font color="#000000"><span style="font-size:12.8px">Petr</span></font></div><br class="m_-7365375192647727182gmail-Apple-interchange-newline">
http://www.blahos.com/</a></div><div style="font-size:12.8px"><a href="http://traceability.cz/" target="_blank">http://traceability.cz/</a></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">2018-04-10 14:05 GMT+02:00 starenka . <span dir="ltr"><<a href="mailto:starenka0@gmail.com" target="_blank">starenka0@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">aha, pozde. mazu se. kthxbai</div><div class="gmail_extra"><span><br clear="all"><div><div class="m_-7365375192647727182m_-7946064623621458368gmail_signature" data-smartmail="gmail_signature">---<br><font color="#c0c0c0"><font size="1">In Perl you shoot yourself in the foot, but nobody can understand how you did it. Six months later, neither can you.</font></font> | print 'aknerats'[::-1]</div></div>
<br></span><div><div class="m_-7365375192647727182h5"><div class="gmail_quote">On Tue, Apr 10, 2018 at 2:04 PM, starenka . <span dir="ltr"><<a href="mailto:starenka0@gmail.com" target="_blank">starenka0@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">a co urlparse?</div><div class="gmail_extra"><br clear="all"><div><div class="m_-7365375192647727182m_-7946064623621458368m_5268696378203070098gmail_signature" data-smartmail="gmail_signature">---<br><font color="#c0c0c0"><font size="1">In Perl you shoot yourself in the foot, but nobody can understand how you did it. Six months later, neither can you.</font></font> | print 'aknerats'[::-1]</div></div><div><div class="m_-7365375192647727182m_-7946064623621458368h5">
<br><div class="gmail_quote">2018-04-10 13:41 GMT+02:00 <span dir="ltr"><<a href="mailto:azurit@pobox.sk" target="_blank">azurit@pobox.sk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ja by som najskor zozbieral vsetky parametre do pola a potom tesne pred odoslanim hlaviciek:<br>
<br>
if redirect_parameters:<br>
reload_redirect['Location'] += "?%s" % "&".join(redirect_parameters)<br>
<br>
<br>
<br>
<br>
<br>
<br>
Citát Petr Messner <<a href="mailto:petr.messner@gmail.com" target="_blank">petr.messner@gmail.com</a>>:<div class="m_-7365375192647727182m_-7946064623621458368m_5268696378203070098HOEnZb"><div class="m_-7365375192647727182m_-7946064623621458368m_5268696378203070098h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Nevim, neznam, asi uz ani nejsem webovy vyvojar :D<br>
<br>
Navrhuju to schovat do funkce:<br>
<br>
reload_redirect['Location'] = append_redirect_param(<br>
reload_redirect['Location'], 'param=1')<br>
<br>
def append_redirect_param(...):<br>
....<br>
<br>
<br>
Petr M.<br>
<br>
<br>
2018-04-10 13:09 GMT+02:00 Vláďa Macek <<a href="mailto:macek@sandbox.cz" target="_blank">macek@sandbox.cz</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Zdar,<br>
<br>
vyhlasuju soutez o nejhezci alternativu pro toto:<br>
<br>
reload_redirect['Location'] += '#param=1'.replace('#', '&' if '?' in<br>
reload_redirect['Location'] else '?')<br>
<br>
Webovi vyvojari jiste zalezitost znaji.<br>
Tesim se ;-)<br>
<br>
Vlada<br>
<br>
<br>
</blockquote></blockquote>
<br>
<br>
<br></div></div><div class="m_-7365375192647727182m_-7946064623621458368m_5268696378203070098HOEnZb"><div class="m_-7365375192647727182m_-7946064623621458368m_5268696378203070098h5">
______________________________<wbr>_________________<br>
Python mailing list<br>
<a href="mailto:python@py.cz" target="_blank">python@py.cz</a><br>
<a href="http://www.py.cz/mailman/listinfo/python" rel="noreferrer" target="_blank">http://www.py.cz/mailman/listi<wbr>nfo/python</a><br>
<br>
Visit: <a href="http://www.py.cz" rel="noreferrer" target="_blank">http://www.py.cz</a><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
Python mailing list<br>
<a href="mailto:python@py.cz" target="_blank">python@py.cz</a><br>
<a href="http://www.py.cz/mailman/listinfo/python" rel="noreferrer" target="_blank">http://www.py.cz/mailman/listi<wbr>nfo/python</a><br>
<br>
Visit: <a href="http://www.py.cz" rel="noreferrer" target="_blank">http://www.py.cz</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Python mailing list<br>
<a href="mailto:python@py.cz">python@py.cz</a><br>
<a href="http://www.py.cz/mailman/listinfo/python" rel="noreferrer" target="_blank">http://www.py.cz/mailman/<wbr>listinfo/python</a><br>
<br>
Visit: <a href="http://www.py.cz" rel="noreferrer" target="_blank">http://www.py.cz</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Jakub Vysoky<br><br>mob: +420 605 852 377<br>jab: <a href="mailto:jakub.vysoky@gmail.com" target="_blank">jakub.vysoky@gmail.com</a><br>twit: <a href="https://twitter.com/kvbik" target="_blank">https://twitter.com/kvbik</a></div>
</div>