[Zope-Checkins] CVS: Zope/ZServer/medusa - filesys.py:1.11
Andreas Jung
andreas@digicool.com
Fri, 12 Apr 2002 10:08:12 -0400
Update of /cvs-repository/Zope/ZServer/medusa
In directory cvs.zope.org:/tmp/cvs-serv18886/ZServer/medusa
Modified Files:
filesys.py
Log Message:
- FTP server: replaced 'System_Process' by 'Sysproc' to
avoid breaking some FTP clients and the output format
with overlong usernames.
=== Zope/ZServer/medusa/filesys.py 1.10 => 1.11 ===
dirchar = '-'
date = ls_date (long(time.time()), stat_info[stat.ST_MTIME])
+ user = str(stat_info[stat.ST_UID].replace(' ','_'))
+ group= str(stat_info[stat.ST_GID].replace(' ','_'))
+ if user=='System_Processes': user='Sysproc'
+ if group=='System_Processes': group='Sysproc'
+
return '%s%s %3d %-8s %-8s %8d %s %s' % (
dirchar,
mode,
stat_info[stat.ST_NLINK],
- stat_info[stat.ST_UID].replace(' ','_'),
- stat_info[stat.ST_GID].replace(' ','_'),
+ user,
+ group,
stat_info[stat.ST_SIZE],
date,
file