[Zope-CMF] Slight change to DirectoryView

Sidnei da Silva sidnei@x3ng.com
Thu, 12 Jun 2003 14:53:45 -0300


Howdy folks,

I was using FSDump for the first time yesterday, and I noticed that
DirectoryView on the 1.3-branch does not handles '.properties' of
files well. Well, more or less. It does treat them right if its
'.properties' but not when its 'filename.html.properties', which ends
up causing the '${filename}.properties' to appear on the directory
view. I have a patch to fix it:

===================================================================
RCS file: /cvs-repository/CMF/CMFCore/DirectoryView.py,v
retrieving revision 1.23.6.2
diff -r1.23.6.2 DirectoryView.py
43c43
<     return name not in ('CVS', 'SVN', '.', '..')
---
>     return name not in ('CVS', 'SVN', '.', '..') and not name.endswith('.properties')

Sounds fine?

-- 
Sidnei da Silva (dreamcatcher) <sidnei@x3ng.com.br>
X3ng Web Technology <http://www.x3ng.com.br>
GNU/Linux user 257852
Debian GNU/Linux 3.0 (Sid) 2.4.20-powerpc ppc

With your bare hands?!?