duplicity-tracker
[Top][All Lists]
Advanced

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

[Duplicity-tracker] [patch #6300] Standard library replacement for Parse


From: Darik Horn
Subject: [Duplicity-tracker] [patch #6300] Standard library replacement for ParsedUrl class
Date: Sat, 01 Dec 2007 23:01:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.10) Gecko/20071126 Ubuntu/7.10 (gutsy) Firefox/2.0.0.10

URL:
  <http://savannah.nongnu.org/patch/?6300>

                 Summary: Standard library replacement for ParsedUrl class
                 Project: duplicity
            Submitted by: dajhorn
            Submitted on: Saturday 12/01/2007 at 23:01
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I wrote this patch because I wanted to use passwords in target URLs. For
example, these targets are valid after this patch is applied:

   ftp://MyUser:address@hidden/MyPath/
   webdav://MyUser:address@hidden/MyPath/

The change applies to any backend that uses the FTP_PASSWORD variable through
the get_password() method.

This capability is convenient on trusted systems and in environment-less cron
jobs.

I tried to add a 'pass' property to the ParsedUrl class, but realized that
the ParsedUrl missed some corner cases and parsing URLs is generally
difficult.  Using the Python standard library was easier and cleaner.

The patch is against duplicity-0.4.6-6285, so it must be rediffed to fit
recent CVS commits.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Saturday 12/01/2007 at 23:01  Name: duplicity-urlparse.patch  Size:
17kB   By: dajhorn

<http://savannah.nongnu.org/patch/download.php?file_id=14532>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6300>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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