Commit 91ef13bb authored by Bartek Górny's avatar Bartek Górny

do not grep binary files

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13318 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cbe29c43
......@@ -2,10 +2,12 @@ import re
import cgi
from Acquisition import aq_base
skip_meta_types = ('Image', 'File')
def traverse(ob, r, result, command_line_arguments):
if command_line_arguments['r'] and \
hasattr(aq_base(ob), 'objectValues'):
for sub in ob.objectValues():
for sub in [o for o in ob.objectValues() if o.meta_type not in skip_meta_types]:
traverse(sub, r, result, command_line_arguments)
try:
if hasattr(aq_base(ob), 'manage_FTPget'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment