[Zope-Checkins] SVN: Zope/trunk/src/OFS/ObjectManager.py Wrap long lines.

Tres Seaver tseaver at palladion.com
Thu Feb 9 16:59:58 UTC 2012


Log message for revision 124347:
  Wrap long lines.

Changed:
  U   Zope/trunk/src/OFS/ObjectManager.py

-=-
Modified: Zope/trunk/src/OFS/ObjectManager.py
===================================================================
--- Zope/trunk/src/OFS/ObjectManager.py	2012-02-09 16:49:05 UTC (rev 124346)
+++ Zope/trunk/src/OFS/ObjectManager.py	2012-02-09 16:59:57 UTC (rev 124347)
@@ -214,7 +214,8 @@
 
         # 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
@@ -222,7 +223,7 @@
         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)
@@ -230,7 +231,7 @@
                         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
@@ -681,7 +682,8 @@
 
             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
 
@@ -806,7 +808,8 @@
 
     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))



More information about the Zope-Checkins mailing list