Beispiel #1
0
def uninstall(root, extension):
    """Uninstall OpenID support
    """
    assert IPASService.providedBy(root.service_members), \
        u"This extension requires silva.pas.base"
    unregisterPASPlugins(root.acl_users)
    noLongerProvides(root.service_members, IOpenIDAware)
Beispiel #2
0
def install(root, extension):
    """Installation method for OpenID support
    """
    assert IPASService.providedBy(root.service_members), \
        u"This extension requires silva.pas.base"

    # Register PAS plugins
    registerPASPlugins(root.acl_users)

    alsoProvides(root.service_members, IOpenIDAware)