Discussion:
[Erp5-dev] ERP5Site_getHelpUrl fixup and Base_getHelpUrl removal proposal
Łukasz Nowak
2007-07-20 14:38:43 UTC
Permalink
Hello,

I've attached little fixup for ERP5Site_getHelpUrl, which will eat all
appended slashes (/) to generate clean URL.

Wouldn't it be nice idea to remove Base_getHelpUrl or make it invoke
new script, if it is left for backward compatibility?

Regards,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ERP5Site_getHelpUrl.xml.slash_removal.patch
Type: text/x-patch
Size: 1374 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20070720/7b95b237/attachment.bin>
Pelletier Vincent
2007-07-23 07:26:37 UTC
Permalink
Post by Łukasz Nowak
I've attached little fixup for ERP5Site_getHelpUrl, which will eat all
appended slashes (/) to generate clean URL.
Wouldn't it be better to use rstrip('/') ?
--
Vincent Pelletier
Łukasz Nowak
2007-07-23 07:29:58 UTC
Permalink
On 2007-07-23, 09:26:37
Post by Pelletier Vincent
Post by Łukasz Nowak
I've attached little fixup for ERP5Site_getHelpUrl, which will eat
all appended slashes (/) to generate clean URL.
Wouldn't it be better to use rstrip('/') ?
Yes... You know, it was Friday, the day, when simplest solution won't
come... :)

Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
Loading...