duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] @ in username for ftp account (follow-up)


From: Kenneth Loafman
Subject: Re: [Duplicity-talk] @ in username for ftp account (follow-up)
Date: Thu, 27 Sep 2007 06:32:36 -0500
User-agent: Thunderbird 1.5.0.13 (X11/20070824)

Olivier Croquette wrote:
> Kenneth Loafman wrote, On 25/09/07 22:23:
>> Thanks for the fix.  I'll check it out and get it in the next release.
> 
> Hi Ken
> 
> I have seem that the patch made its way into the RC, that's great!
> 
> There is a bug in the current version since the port is not taken into
> account, so can you replace straight_url() in backends.py by the
> following one?
> 
>         def straight_url(self):
>                 """Return the URL with the username stripped"""
>         # Emulation of the trinary operator:
>                 strpath = (self.path != None and self.path or "")
>                 strport = (self.port != None and (":%d"%self.port) or "")
>                 url = '%s://%s%s/%s' % (self.protocol, self.host,
> strport, strpath)
>                 return url

I'll get the fix in.  We have some folks that need it.

That's an interesting approach to the ternary operator.

...Ken


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]