[Checkins] SVN: zope.introspector/trunk/src/zope/introspector/registry.py made it possible to get all registrations via search for '*'
Martin Lundwall
martin at webworks.se
Sat Aug 16 11:48:33 EDT 2008
Log message for revision 89913:
made it possible to get all registrations via search for '*'
Changed:
U zope.introspector/trunk/src/zope/introspector/registry.py
-=-
Modified: zope.introspector/trunk/src/zope/introspector/registry.py
===================================================================
--- zope.introspector/trunk/src/zope/introspector/registry.py 2008-08-16 14:12:06 UTC (rev 89912)
+++ zope.introspector/trunk/src/zope/introspector/registry.py 2008-08-16 15:48:32 UTC (rev 89913)
@@ -99,11 +99,14 @@
if 'subscriptionAdapters' in types:
searchInterfaces.extend(self.getAllSubscriptionAdapters())
- #Search using adapters
- for eachRegistration in searchInterfaces:
- if IRegistrySearch(eachRegistration).searchRegistration(
- searchString):
- interfaces.append(eachRegistration)
+ if searchString == '*':
+ interfaces = searchInterfaces
+ else:
+ #Search using adapters
+ for eachRegistration in searchInterfaces:
+ if IRegistrySearch(eachRegistration).searchRegistration(
+ searchString):
+ interfaces.append(eachRegistration)
return interfaces
def getAllInterfaces(self):
More information about the Checkins
mailing list