[Zope] FTP and file names

iap@y2fun.com iap@y2fun.com
Sat, 24 Nov 2001 15:59:32 +0800


Hi, Andreas
Thank. I think that I got the idea what happened.
In the Zserver/FTPServer.py
    in "def listdir_completion"

            if long:
                for id, stat_info in file_infos:

dir_list=dir_list+filesys.unix_longify(id,stat_info)+'\r\n'

   In case when  the stat_info[4] (file owner)  is "System Processes",
   the returned list of unix_longify will got extra-column which causes the
ftp client to
   misunderstand the actually filename.

   a very quick-and-dirty work around is as follows:

            if long:
                for id, stat_info in file_infos:
                    stat_info=list(stat_info)
                    stat_info[4]=string.replace(stat_info[4],' ','_')

dir_list=dir_list+filesys.unix_longify(id,stat_info)+'\r\n'

   hopes the development team will work on this.

   Iap, Singuan

----- Original Message -----
From: "Andreas Jung" <andreas@zope.com>
To: <iap@y2fun.com>
Sent: Thursday, November 01, 2001 9:33 PM
Subject: Re: [Zope] FTP and file names


> hm...give me a detailed example. What is the Id of the document
> on your Zope server ? What Zope version are you running ? What plattform ?
>
> Andreas
> ----- Original Message -----
> From: <iap@y2fun.com>
> To: "Andreas Jung" <andreas@andreas-jung.com>; "Tina Poole"
> <Tina.Poole@mincom.com>; <zope@zope.org>
> Sent: Thursday, November 01, 2001 07:12
> Subject: Re: [Zope] FTP and file names
>
>
> > I also encounter the same problem in my big5-encoding version of Windows
> 98.
> > I have tried many kind of ftp clients, including IE, Uedit, Dreamweaver.
> > All the same.
> >
> > Iap, Singuan
> >
> > ----- Original Message -----
> > From: "Andreas Jung" <andreas@andreas-jung.com>
> > To: "Tina Poole" <Tina.Poole@mincom.com>; <zope@zope.org>
> > Sent: Thursday, November 01, 2001 8:01 PM
> > Subject: Re: [Zope] FTP and file names
> >
> >
> > > Zope does not make any modifications to the filename when you are
> > > downloading a file through FTP from the Zope server.
> > >
> > > Andreas
> > > ----- Original Message -----
> > > From: "Tina Poole" <Tina.Poole@mincom.com>
> > > To: <zope@zope.org>
> > > Sent: Thursday, November 01, 2001 01:34
> > > Subject: [Zope] FTP and file names
> > >
> > >
> > > > Hi all,
> > > >
> > > > We are using WS_FTP to load files onto our Zope site. The problem is
> > > > attempting to download some of the files off the site for updating.
> > > >
> > > > It seems to be the file name which is causing the problem. They are
> > being
> > > > seen in the FTP window as
> > > >
> > > > Name                      Date
> > > >
> > > > 01 14:09 savingafile
> > > >
> > > >
> > > > instead of
> > > >
> > > >
> > > > Name   Date
> > > >
> > > > savingafile 14022001 01:09
> > > >
> > > >
> > > > It seems, as far as I can tell, parts of the date are being added to
> the
> > > > front of the file name. This does not happen for all files and I
can't
> > > find
> > > > a common factor to the files that are displayed in this way. They
work
> > > fine
> > > > on the site and in the management pages.
> > > >
> > > > If you look in 'The Zope Book' in chapter 3 - Using Basic Zope
> Objects,
> > in
> > > > the section Uploading Documents and Files with WS_FTP, figure 3-3
> shows
> > an
> > > > example of what is happening. The first three files have wrong names
> and
> > > the
> > > > last file (openwindow) appears to be OK.
> > > >
> > > > I have gone through the changing the settings in WS_FTP and
searching
> > > their
> > > > knowledge base as well as the Zope site but can't find any reference
> to
> > > this
> > > > problem.
> > > >
> > > > Any help or advice would be appreciated,
> > > >
> > > > thanks
> > > >
> > > > tina
> > > >
> > > >
> > > > tina poole
> > > > technical writer
> > > >
> > > > MineStar
> > > > Mincom Limited
> > > > Brisbane Australia
> > > >
> > > > ___________________________________________
> > > >
> > > > This transmission is for the intended addressee only and is
> confidential
> > > > information. If you have received this transmission in error, please
> > > delete
> > > > it and notify the sender. The contents of this E-mail are the
opinion
> of
> > > the
> > > > writer only and are not endorsed by Mincom Limited unless expressly
> > stated
> > > > otherwise.
> > > >
> > > >
> > > > _______________________________________________
> > > > Zope maillist  -  Zope@zope.org
> > > > http://lists.zope.org/mailman/listinfo/zope
> > > > **   No cross posts or HTML encoding!  **
> > > > (Related lists -
> > > >  http://lists.zope.org/mailman/listinfo/zope-announce
> > > >  http://lists.zope.org/mailman/listinfo/zope-dev )
> > > >
> > >
> > >
> > > _______________________________________________
> > > Zope maillist  -  Zope@zope.org
> > > http://lists.zope.org/mailman/listinfo/zope
> > > **   No cross posts or HTML encoding!  **
> > > (Related lists -
> > >  http://lists.zope.org/mailman/listinfo/zope-announce
> > >  http://lists.zope.org/mailman/listinfo/zope-dev )
> > >
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>
>