{5} Assigned, Active Tickets by Owner (Full Description) (7 matches)

List tickets assigned, group by ticket owner. This report demonstrates the use of full-row display.

schwa

Ticket Summary Component Milestone Type Created
Description
#15 Add support for FXP (FTP to FTP copy) Library enhancement 2006-05-13

I think it extremely useful for ftp admins, but neither ftplib nor ftputil support it.

Of course, download from one host then upload to another is a workaround, but it's really not a efficient way.


#20 Allow to track upload and download progress Library 2.4 enhancement 2007-04-16

This issue was brought up by Ian Cook, see http://codespeak.net/pipermail/ftputil/2006q3/000124.html .

When an upload or download is started, there's no way to follow the progress of the transfer (other than stat'ing the target file). The ftputil code should be extended to follow the transfer's progress, possibly with a callback function/method.


#30 Add support for the with statement Library 2.3 enhancement 2008-07-23

Roger Demetrescu suggests in this mail to add support for Python's with statement, introduced in Python 2.5.

The example Roger gives is about using the with statement on FTPHost objects, but I think even more it should also be applied to FTPFile objects.

Stefan


#29 Distribute ftputil as a Debian/Ubuntu package Other 2.3 task 2008-07-21

ftputil should not only be distributed as a tar.gz file but also as a Debian/Ubuntu package (if possible in the regular distribution, not just as an Debian-wise unofficial .deb package).

Rationale:

  • ftputil would become more widely known. This could result in more users, more feedback and possibly more contributions.
  • It would be easier for other Debian/Ubuntu developers to add FTP support to their programs by adding ftputil as dependency.

Subtasks:

  • Add a subdirectory to ftputil's repository which contains the Debian-specific stuff.
  • Extend ftputil's makefile so that source and binary packages can easily be built along with the tar.gz distribution.
  • Get the Debian package included in the regular Debian distribution.

In principle, this applies also to other distributions. The reason for choosing Debian here is that I (Stefan) usually work with Ubuntu and could develop this package myself. If you would like to provide a package for another Unix/Linux distribution, please send a mail to the mailing list at ftputil@codespeak.net . Note that you should subscribe to the mailing list at http://codespeak.net/mailman/listinfo/ftputil before sending a mail to the list.

Stefan


#6 Add an FTP mirror script Other enhancement 2006-02-01

Despite there are many syncing/mirroring scripts for FTP servers out there, it might be worthwhile to bundle such a script with ftputil to:

  • provide a working example of ftputil code
  • learn more about ftputil usage and by that find out about functionality that should be added
  • serve as a benchmark for measurements before and after implementation regarding issue #3

I classify this issue as "minor" because the mirror script isn't that important for the functioning of ftputil.


#14 Support for the REST verb. Library enhancement 2006-02-23

It would be great if ftputil supported the transfer restarts (i.e. to continue an incomplete download).

From spec (http://war.jgaa.com/ftp/rfc/rfc959.txt):

RESTART (REST)

The argument field represents the server marker at which file transfer is to be restarted. This command does not cause file transfer but skips over the file to the specified data checkpoint. This command shall be immediately followed by the appropriate FTP service command which shall cause file transfer to resume.


#28 Additional parameters for files Library 2.3 enhancement 2008-05-27

For writing binary files on MVS I needed to send some additional commands to the ftp server. The following codes shows an example:

file = ftputil.FTPHost(host, user, password).file("/"+name, "wb",
                                            addcmds=("SITE BLKSIZE=0",
                                                     "SITE RECFMT=FB",
                                                     "SITE LRECL=%d" % length ))

Btw. this example shows a workaround for track # 26 by adding a "/" to the filename.

I applied the following patches to achieve this behaviour:

--- ftputil.py 
+++ ../ftputil-2.2.3/ftputil.py 
@@ -191,7 +191,7 @@
         # be explicit
         return None
 
-    def file(self, path, mode='r', **args):
+    def file(self, path, mode='r'):
         """
         Return an open file(-like) object which is associated with
         this `FTPHost` object.
@@ -220,7 +220,7 @@
             #  raise an `IOError`, not an `OSError`
             raise ftp_error.FTPIOError("remote directory '%s' doesn't exist "
                   "or has insufficient access rights" % effective_dir)
-        host._file._open(effective_file, mode, **args)
+        host._file._open(effective_file, mode)
         if 'w' in mode:
             self.stat_cache.invalidate(effective_path)
         return host._file
--- ftp_file.py 
+++ ../ftputil-2.2.3/ftp_file.py 
@@ -87,15 +87,8 @@
         # the file is closed yet
         self.closed = True
 
-    def _open(self, path, mode, **args):
-        """ Open the remote file with given path name and mode
-            and possibly additional arguments.
-
-            Possible keys for args:
-            addcmds     List of additional ftp-commands to send
-                        before the STOR/RETR command (e.g. to set
-                        file information on mvs)
-        """
+    def _open(self, path, mode):
+        """Open the remote file with given path name and mode."""
         # check mode
         if 'a' in mode:
             raise ftp_error.FTPIOError("append mode not supported")
@@ -108,8 +101,6 @@
         transfer_type = ('A', 'I')[self._bin_mode]
         command = 'TYPE %s' % transfer_type
         ftp_error._try_with_ioerror(self._session.voidcmd, command)
-        for command in args.get("addcmds", []) :
-            ftp_error._try_with_ioerror(self._session.voidcmd, command)
         # make transfer command
         command_type = ('STOR', 'RETR')[self._read_mode]
         command = '%s %s' % (command_type, path)

Hopefully, you like this patch and incorporate it into ftputil.

Regards, Axel


Note: See TracReports for help on using and creating reports.