Ignore:
Timestamp:
8 Nov 2011, 21:58:01 (13 years ago)
Author:
uli
Message:

Complete yet unfinished unregister method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/applicants/authentication.py

    r6670 r7044  
    256256    systems (regular users, officers, etc.) were set up.
    257257    """
    258     grok.provides(IAuthPluginUtility)
     258    grok.implements(IAuthPluginUtility)
    259259    grok.name('applicants_auth_setup')
    260260
     
    285285
    286286    def unregister(self, pau):
     287        """Unregister applicant specific authentication components from PAU.
     288        """
     289        pau.credentialsPlugins = tuple(
     290            [x for x in list(pau.credentialsPlugins)
     291             if x != 'applicant_credentials'])
     292        pau.authenticatorPlugins = tuple(
     293            [x for x in list(pau.authenticatorPlugins)
     294             if x != 'applicants'])
    287295        return pau
    288296
Note: See TracChangeset for help on using the changeset viewer.