[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] @ in username for ftp account (follow-up)
From: |
Olivier Croquette |
Subject: |
Re: [Duplicity-talk] @ in username for ftp account (follow-up) |
Date: |
Thu, 27 Sep 2007 08:29:56 +0200 |
User-agent: |
Thunderbird 2.0.0.4 (Macintosh/20070604) |
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