Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > cz.comp.lang.python > #3280 > unrolled thread
| Started by | azurit@pobox.sk |
|---|---|
| First post | 2018-04-10 13:41 +0200 |
| Last post | 2018-04-10 13:41 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to cz.comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [python] &soutez :-) azurit@pobox.sk - 2018-04-10 13:41 +0200
| From | azurit@pobox.sk |
|---|---|
| Date | 2018-04-10 13:41 +0200 |
| Subject | Re: [python] &soutez :-) |
| Message-ID | <mailman.9.1523360492.27945.python@py.cz> |
Ja by som najskor zozbieral vsetky parametre do pola a potom tesne
pred odoslanim hlaviciek:
if redirect_parameters:
reload_redirect['Location'] += "?%s" % "&".join(redirect_parameters)
Citát Petr Messner <petr.messner@gmail.com>:
> 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 <macek@sandbox.cz>:
>
>> Zdar,
>>
>> vyhlasuju soutez o nejhezci alternativu pro toto:
>>
>> reload_redirect['Location'] += '#param=1'.replace('#', '&' if '?' in
>> reload_redirect['Location'] else '?')
>>
>> Webovi vyvojari jiste zalezitost znaji.
>> Tesim se ;-)
>>
>> Vlada
>>
>>
Back to top | Article view | cz.comp.lang.python
csiph-web