Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
Updated to the latest head version of the trunk. It did not fix the 4
Browse files Browse the repository at this point in the history
ftests failures though. :(
  • Loading branch information
strichter committed Feb 10, 2005
1 parent f183c97 commit ef4198a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vocabulary.py
Expand Up @@ -15,7 +15,7 @@
This vocabulary provides permission IDs.
$Id: $
$Id$
"""
from zope.security.checker import CheckerPublic
from zope.app import zapi
Expand Down Expand Up @@ -207,13 +207,18 @@ def getQueriables(self):
"""
i = 0
auth = zapi.getUtility(IAuthentication)
yielded = []
while True:
queriables = ISourceQueriables(auth, None)
if queriables is None:
yield unicode(i), auth
else:
for qid, queriable in queriables.getQueriables():
yield unicode(i)+'.'+unicode(qid), queriable
# ensure that we dont return same yielded utility more
# then once
if queriable not in yielded:
yield unicode(i)+'.'+unicode(qid), queriable
yielded.append(queriable)
auth = queryNextUtility(auth, IAuthentication)
if auth is None:
break
Expand Down

0 comments on commit ef4198a

Please sign in to comment.