Ignore:
Timestamp:
28 Nov 2011, 21:42:28 (13 years ago)
Author:
Henrik Bettermann
Message:

Use new principal attributes in contact form pages (applicants not yet ready).

(And some missing things from last checkin).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/helpers.py

    r7229 r7234  
    477477    """
    478478    principal_id = request.principal.id
    479     authenticators = getUtilitiesFor(IAuthenticatorPlugin)
    480     for authenticator in authenticators:
    481         account = authenticator[1].getAccount(principal_id)
    482         if account:
    483             break
     479    authenticator = getUtility(IAuthenticatorPlugin, name='users')
     480    account = authenticator.getAccount(principal_id)
    484481    return account
    485482
Note: See TracChangeset for help on using the changeset viewer.