Skip to content

Commit

Permalink
Wrap long lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Feb 9, 2012
1 parent ce253b6 commit 3c04c42
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/OFS/ObjectManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,23 +214,24 @@ def all_meta_types(self, interfaces=None):

# Look at all globally visible meta types.
for entry in getattr(Products, 'meta_types', ()):
if ( (interfaces is not None) or (entry.get("visibility", None)=="Global") ):
if ((interfaces is not None) or
(entry.get("visibility", None)=="Global")):
external_candidates.append(entry)

# Filter the list of external candidates based on the
# specified interface constraint
if interfaces is None:
interface_constrained_meta_types = external_candidates
else:
interface_constrained_meta_types = []
interface_constrained_meta_types = icmt = []
for entry in external_candidates:
try:
eil = entry.get('interfaces',None)
if eil is not None:
for ei in eil:
for i in interfaces:
if ei is i or ei.extends(i):
interface_constrained_meta_types.append(entry)
icmt.append(entry)
raise BreakoutException # only append 1ce
except BreakoutException:
pass
Expand Down Expand Up @@ -681,7 +682,8 @@ def manage_FTPlist(self, REQUEST):

all_files = copy.copy(files)
for f in files:
if hasattr(aq_base(f[1]), 'isPrincipiaFolderish') and f[1].isPrincipiaFolderish:
if (hasattr(aq_base(f[1]), 'isPrincipiaFolderish') and
f[1].isPrincipiaFolderish):
all_files.extend(findChildren(f[1]))
files = all_files

Expand Down Expand Up @@ -806,7 +808,8 @@ def findChildren(obj,dirname=''):

lst = []
for name, child in obj.objectItems():
if hasattr(aq_base(child), 'isPrincipiaFolderish') and child.isPrincipiaFolderish:
if (hasattr(aq_base(child), 'isPrincipiaFolderish') and
child.isPrincipiaFolderish):
lst.extend(findChildren(child, dirname + obj.id + '/'))
else:
lst.append((dirname + obj.id + "/" + name, child))
Expand Down

0 comments on commit 3c04c42

Please sign in to comment.