Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(9)  |  Derive(0)  |  Import(2)

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/setuphandlers.py   ftw.bridge.client(Download)
from Products.CMFCore.utils import getToolByName
from Products.PluggableAuthService.interfaces import plugins
from ftw.bridge.client.plugin import BridgePlugin
 
 
        return
 
    plugin = BridgePlugin(PLUGIN_ID)
    acl_users._setObject(plugin.getId(), plugin)
    # acl_users[PLUGIN_ID] = plugin

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_plugin.py   ftw.bridge.client(Download)
from Products.PluggableAuthService.interfaces import plugins
from copy import copy
from ftw.bridge.client.interfaces import IBridgeConfig
from ftw.bridge.client.plugin import BridgePlugin
from ftw.bridge.client.testing import ZCML_LAYER
        self.replay()
 
        plugin = BridgePlugin('bridge')
        self.assertEqual(
            plugin.extractCredentials(request),
        self.replay()
 
        plugin = BridgePlugin('bridge')
        self.assertEqual(
            plugin.extractCredentials(request),
        self.replay()
 
        plugin = BridgePlugin('bridge')
        self.assertEqual(
            plugin.extractCredentials(request),
            {})
 
    def test_authenticate_credentials(self):
        self.replay()
        plugin = BridgePlugin('bridge')