[Checkins] SVN: zope.locking/trunk/src/zope/locking/browser/tokenview.py Substitute zope.app.zapi by direct calls to its wrapped apis. See bug 219302

Lorenzo Gil lgs at sicem.biz
Thu May 1 02:35:04 EDT 2008


Log message for revision 85951:
  Substitute zope.app.zapi by direct calls to its wrapped apis. See bug 219302

Changed:
  U   zope.locking/trunk/src/zope/locking/browser/tokenview.py

-=-
Modified: zope.locking/trunk/src/zope/locking/browser/tokenview.py
===================================================================
--- zope.locking/trunk/src/zope/locking/browser/tokenview.py	2008-05-01 05:37:04 UTC (rev 85950)
+++ zope.locking/trunk/src/zope/locking/browser/tokenview.py	2008-05-01 06:35:03 UTC (rev 85951)
@@ -8,7 +8,7 @@
 import zope.formlib.namedtemplate
 
 from zope.app.publisher.interfaces.browser import IBrowserMenuItem
-from zope.app import zapi
+from zope.app.security.interfaces import IAuthentication
 
 from zope.locking import interfaces
 import zc.i18n.date
@@ -106,7 +106,7 @@
                     token.started.astimezone(tzinfo))
                 self.othersInToken = self.inToken = False
                 self.participants = []
-                principals = zapi.principals()
+                principals = component.getUtility(IAuthentication)
                 ct = len(list(token.principal_ids))
                 self.noParticipants = ct == 0
                 self.singleParticipant = ct == 1



More information about the Checkins mailing list