Re: [python] :-)

2018-04-10 Tema obsahu starenka .
aha, pozde. mazu se. kthxbai --- In Perl you shoot yourself in the foot, but nobody can understand how you did it. Six months later, neither can you. | print 'aknerats'[::-1] On Tue, Apr 10, 2018 at 2:04 PM, starenka . wrote: > a co urlparse? > > --- > In Perl you shoot

Re: [python] :-)

2018-04-10 Tema obsahu Petr Messner
Nevim, neznam, asi uz ani nejsem webovy vyvojar :D Navrhuju to schovat do funkce: reload_redirect['Location'] = append_redirect_param( reload_redirect['Location'], 'param=1') def append_redirect_param(...): Petr M. 2018-04-10 13:09 GMT+02:00 Vláďa Macek : > Zdar,

Re: [python] :-)

2018-04-10 Tema obsahu Petr Viktorin
On 04/10/18 13:09, Vláďa Macek wrote: Zdar, vyhlasuju soutez o nejhezci alternativu pro toto: reload_redirect['Location'] += '#param=1'.replace('#', '&' if '?' in reload_redirect['Location'] else '?') Jestli jenom tohohletoho, tak asi: if '?' in reload_redirect['Location']:

Re: [python] :-)

2018-04-10 Tema obsahu starenka .
a co urlparse? --- In Perl you shoot yourself in the foot, but nobody can understand how you did it. Six months later, neither can you. | print 'aknerats'[::-1] 2018-04-10 13:41 GMT+02:00 : > Ja by som najskor zozbieral vsetky parametre do pola a potom tesne pred > odoslanim

Re: [python] :-)

2018-04-10 Tema obsahu Petr Blahos
Asi budu v menšině, ale parsovat a znovu skládat - to bych v tomto případě nedělal. separator = "&" if "?" in reload_redirect['Location'] else "?" reload_redirect['Location'] += separator + "param=1" -- Petr http://www.blahos.com/ http://traceability.cz/ 2018-04-10