Changeset 7229 for main/waeup.sirp/trunk/src/waeup/sirp/utils
- Timestamp:
- 28 Nov 2011, 10:35:47 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/utils/helpers.py
r7225 r7229 27 27 from cStringIO import StringIO 28 28 from docutils.core import publish_string 29 from zope.component import getUtility 29 from zope.component import getUtility, getUtilitiesFor 30 30 from zope.component.interfaces import IFactory 31 31 from zope.interface import implementedBy … … 477 477 """ 478 478 principal_id = request.principal.id 479 authenticator = getUtility(IAuthenticatorPlugin, name='users') 480 account = authenticator.getAccount(principal_id) 479 authenticators = getUtilitiesFor(IAuthenticatorPlugin) 480 for authenticator in authenticators: 481 account = authenticator[1].getAccount(principal_id) 482 if account: 483 break 481 484 return account 482 485
Note: See TracChangeset for help on using the changeset viewer.