[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/authentication/authentication.py Added context to queryUtility in getPrincipals.

Roger Ineichen roger at projekt01.ch
Wed Feb 9 19:05:25 EST 2005


Log message for revision 29097:
  Added context to queryUtility in getPrincipals.
  Otheriwse they get lookuped from the wrong site.
  
  TODO:
  Check if we have more such usecase in authentication.py
  I think we should add a real multi-site test setup and test
  more usecase with next uitility usecases.

Changed:
  U   Zope3/trunk/src/zope/app/authentication/authentication.py

-=-
Modified: Zope3/trunk/src/zope/app/authentication/authentication.py
===================================================================
--- Zope3/trunk/src/zope/app/authentication/authentication.py	2005-02-09 23:14:53 UTC (rev 29096)
+++ Zope3/trunk/src/zope/app/authentication/authentication.py	2005-02-10 00:05:24 UTC (rev 29097)
@@ -89,7 +89,8 @@
         id = id[len(self.prefix):]
 
         for searcher in self.searchers:
-            searcher = queryUtility(IPrincipalSearchPlugin, searcher)
+            searcher = queryUtility(IPrincipalSearchPlugin, searcher, 
+                                    context=self)
             if searcher is None:
                 continue
 



More information about the Zope3-Checkins mailing list