Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > cz.comp.lang.python > #3280

Re: [python] &soutez :-)

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.roellig-ltd.de!open-news-network.org!peer03.am4!peer.am4.highwinds-media.com!peer01.fr7!futter-mich.highwinds-media.com!news.highwinds-media.com!fx01.am4.POSTED!not-for-mail
Received-SPF none (Address does not pass the Sender Policy Framework) SPF=MAILFROM; sender=azurit@pobox.sk; remoteip=::ffff:109.74.156.7; remotehost=; helo=server00.inetadmin.eu; receiver=hugo.zagamma.cz;
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.sk; s=dkiminetadmin; t=1523360489; h=from:sender:reply-to:subject:date:message-id:to:cc:mime-version:content-type:content-transfer-encoding:resent-to:resent-cc:resent-from:resent-sender:resent-message-id:in-reply-to:references:list-id:list-owner:list-unsubscribe:list-subscribe:list-post; bh=6JAPnuB9uoS8OrVd5LJO/teFIkyimHH06LqWT3rjf/k=; b=L6rtAuwwAkNz8hWfNzseaTqhIjJ6YjGp8LJMzrl8+mN5Vk/Qms8T1Yw0fNBgy+lIWxI/TF AVEtTjIJzOg+3r2zzhM6beiviagC7ezdwZ8apSUWWt9cwFGqxGooyYNuGhjLl8bdaYSfMO /wWx9MkG6mq61SpKXJOGyEIjF5OT7JM=
From azurit@pobox.sk
In-Reply-To <CAK9Q5BSAdMnkvq7uNrGA2vyO-qPXUOwbgXBQcmPhX4hvnm3k6g@mail.gmail.com>
User-Agent Horde Application Framework 5
Content-Type text/plain; charset=utf-8; format=flowed; DelSp=Yes
MIME-Version 1.0
Content-Disposition inline
Content-Transfer-Encoding 8bit
Received-SPF none (Address does not pass the Sender Policy Framework) SPF=FROM; sender=azurit@pobox.sk; remoteip=::ffff:109.74.156.7; remotehost=; helo=server00.inetadmin.eu; receiver=hugo.zagamma.cz;
Subject Re: [python] &soutez :-)
X-BeenThere python@py.cz
X-Mailman-Version 2.1.26
Precedence list
List-Id Konference PyCZ <python.py.cz>
List-Unsubscribe <http://www.py.cz/mailman/options/python>, <mailto:python-request@py.cz?subject=unsubscribe>
List-Archive <http://www.py.cz/pipermail/python/>
List-Post <mailto:python@py.cz>
List-Help <mailto:python-request@py.cz?subject=help>
List-Subscribe <http://www.py.cz/mailman/listinfo/python>, <mailto:python-request@py.cz?subject=subscribe>
Newsgroups cz.comp.lang.python
Message-ID <mailman.9.1523360492.27945.python@py.cz> (permalink)
X-Mailman-Original-Message-ID <20180410134129.Horde.lhoJBkZd1XZKHAxvqqpSEFs@webmail.inetadmin.eu>
X-Mailman-Original-References <2198dd9f-94aa-4fc4-0cd1-2be6bb74837c@sandbox.cz> <CAK9Q5BSAdMnkvq7uNrGA2vyO-qPXUOwbgXBQcmPhX4hvnm3k6g@mail.gmail.com>
References <2198dd9f-94aa-4fc4-0cd1-2be6bb74837c@sandbox.cz> <CAK9Q5BSAdMnkvq7uNrGA2vyO-qPXUOwbgXBQcmPhX4hvnm3k6g@mail.gmail.com> <20180410134129.Horde.lhoJBkZd1XZKHAxvqqpSEFs@webmail.inetadmin.eu>
Lines 45
X-Complaints-To abuse@usenet-news.net
NNTP-Posting-Date Tue, 10 Apr 2018 11:41:32 UTC
Organization usenet-news.net
Date Tue, 10 Apr 2018 13:41:29 +0200
X-Received-Bytes 3463
X-Received-Body-CRC 4102629383
Xref csiph.com cz.comp.lang.python:3280

Show key headers only | View raw


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 cz.comp.lang.python | Previous | Next | Find similar


Thread

Re: [python] &soutez :-) azurit@pobox.sk - 2018-04-10 13:41 +0200

csiph-web