[Zope-Checkins] CVS: Zope/lib/python/ComponentArchitecture - Feature.py:1.1.2.2 Presentation.py:1.1.4.7

Shane Hathaway shane@digicool.com
Fri, 12 Oct 2001 17:53:24 -0400


Update of /cvs-repository/Zope/lib/python/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv31021

Modified Files:
      Tag: ComponentArchitecture-branch
	Feature.py Presentation.py 
Log Message:
Default to finding a component that applies to anything.


=== Zope/lib/python/ComponentArchitecture/Feature.py 1.1.2.1 => 1.1.2.2 ===
             if c is not None:
                 break
+        if c is None:
+            # Try to find a component that applies to anything.
+            c = reg.get(None, output)
     if c is None:
         if default is not _marker:
             return default


=== Zope/lib/python/ComponentArchitecture/Presentation.py 1.1.4.6 => 1.1.4.7 ===
                 if c is not None:
                     break
+            if c is None:
+                # Try to find a component that applies to anything.
+                c = reg.get(None, output)
     if c is None:
         if default is not _marker:
             return default