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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/r/Products.membrane-2.1.11/Products/membrane/plugins/usermanager.py   Products.membrane(Download)
from Products.membrane.interfaces.plugins import IMembraneUserManagerPlugin
from Products.membrane.interfaces import user as user_ifaces
from Products.membrane.utils import getCurrentUserAdder
from Products.membrane.utils import findImplementations
from Products.membrane.utils import findMembraneUserAspect
        utility
        """
        adder = getCurrentUserAdder(self)
        if adder is not None:
            adder.addUser(login, password)

src/p/r/Products.membrane-2.1.11/Products/membrane/tests/testUserAdder.py   Products.membrane(Download)
from Acquisition import aq_parent, aq_inner
from Products.membrane.utils import getCurrentUserAdder
import base
 
 
    def testAcquisition(self):
        plugin = self.portal.acl_users.membrane_users
        adder = getCurrentUserAdder(plugin)
        # We should have request
        self.failIf(getattr(aq_inner(adder), 'REQUEST', None) is None)