Exemple #1
0
def installPAS(portal):
    out = StringIO()

    # Add user folder
    portal.manage_addProduct["PluggableAuthService"].addPluggableAuthService()

    # Configure Challenge Chooser plugin if available
    challenge_chooser_setup(portal, out)

    # A bunch of general configuration settings
    registerPluginTypes(portal.acl_users)
    setupPlugins(portal, out)

    # TODO: This is highly questionable behaviour. Replacing the UF at the root.
    migrate_root_uf(portal, out)
def installPAS(portal):
    # Add user folder
    portal.manage_addProduct['PluggableAuthService'].addPluggableAuthService()

    # Configure Challenge Chooser plugin if available
    challenge_chooser_setup(portal)

    # A bunch of general configuration settings
    registerPluginTypes(portal.acl_users)
    setupPlugins(portal)

    # XXX Why are we doing this?
    # According to Sidnei, "either cookie or basic auth for a user in the root folder doesn't work
    # if it's not a PAS UF when you sign in to Plone. IIRC."
    # See: http://twitter.com/#!/sidneidasilva/status/14030732112429056
    # And here's the original commit: 
    # http://dev.plone.org/collective/changeset/10720/PlonePAS/trunk/Extensions/Install.py
    migrate_root_uf(portal)
Exemple #3
0
 def testSetUp(self):
     self.setUpProducts()
     provideUtility(self['app'], provides=ISiteRoot)
     migrate_root_uf(self['app'])