Skip to content

Commit

Permalink
meaningful var name 'c'-> 'count'
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Aug 14, 2023
1 parent 1784790 commit 823ba67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Products/CMFCore/DirectoryView.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@ def listDirectories(self):
registerMetaType = _dirreg.registerMetaType


def listFolderHierarchy(ob, path, rval, adding_meta_type=None, max=0, c=0):
def listFolderHierarchy(ob, path, rval, adding_meta_type=None, max=0, count=0):
if not hasattr(ob, 'objectValues'):
return
for subob in ob.objectValues():
c += 1
count += 1
base = getattr(subob, 'aq_base', subob)
if getattr(base, 'isPrincipiaFolderish', 0):

Expand All @@ -390,10 +390,10 @@ def listFolderHierarchy(ob, path, rval, adding_meta_type=None, max=0, c=0):
name = f'{subpath} ({title})'
else:
name = subpath
if max == 0 or c <= max:
if max == 0 or count <= max:
rval.append((subpath, name))
listFolderHierarchy(subob, subpath, rval, adding_meta_type,
max, c)
max, count)


@implementer(IDirectoryView)
Expand Down

0 comments on commit 823ba67

Please sign in to comment.