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

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

src/e/r/erp5-HEAD/product/ERP5Type/tests/testCookieCrumbler.py   erp5(Download)
from ZPublisher.HTTPResponse import HTTPResponse
 
from Products.CMFCore.CookieCrumbler \
     import CookieCrumbler, manage_addCC, Redirect
from Products.CMFCore.tests.test_CookieCrumbler import makerequest

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_CookieCrumbler.py   Products.CMFCore(Download)
    def testAutoLoginRedirection(self):
        # Redirect unauthorized anonymous users to the login page
        from Products.CMFCore.CookieCrumbler  import Redirect
 
        root, cc, req, credentials = self._makeSite()
    def testRetryLogin(self):
        # After a failed login, CookieCrumbler should give the user an
        # opportunity to try to log in again.
        from Products.CMFCore.CookieCrumbler  import Redirect
 
    def testLoginRestoresQueryString(self):
        # When redirecting for login, the came_from form field should
        # include the submitted URL as well as the query string.
        import urllib
        from Products.CMFCore.CookieCrumbler  import Redirect
    def testRedirectOnUnauthorized(self):
        # Redirect already-authenticated users to the unauthorized
        # handler page if that's what the sysadmin really wants.
        from Products.CMFCore.CookieCrumbler  import Redirect