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

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

src/h/l/hl.plone.boardnotifications-0.8/hl/plone/boardnotifications/browser/mailin.py   hl.plone.boardnotifications(Download)
 
        # See if this user already has the Manager role, otherwise add it.
        if self.fake_manager and not user.allowed(self.context, ('Manager', )):
            logger.debug("Faking Manager role for user %s", user_id)
            user = UnrestrictedUser(user_id, '', ['Manager'], '')

src/p/o/poi.receivemail-1.11/poi/receivemail/poimail.py   poi.receivemail(Download)
 
        # See if this user already has the Manager role, otherwise add it.
        if FAKE_MANAGER and not user.allowed(self.context, ('Manager', )):
            logger.debug("Faking Manager role for user %s", user_id)
            user = UnrestrictedUser(user_id, '', ['Manager'], '')