Did I find the right examples for you? yes no

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

src/r/a/raptorizemw-HEAD/examples/tg2-raptorized/tg2raptorized/controllers/error.py   raptorizemw(Download)
    def document(self, *args, **kwargs):
        """Render the error document"""
        resp = request.environ.get('pylons.original_response')
        default_message = ("<p>We're sorry but we weren't able to process "
                           " this request.</p>")
        values = dict(prefix=request.environ.get('SCRIPT_NAME', ''),

src/s/a/SAUCE-HEAD/sauce/controllers/root.py   SAUCE(Download)
    def login(self, came_from=lurl('/'), *args, **kwargs):
        """Start the user login."""
        if request.environ.get('repoze.who.identity', None):
            # Already authenticated through external means or by manual URL access
            # Clear flash message cookie
            flash.pop_payload()
            redirect(came_from)
        login_counter = request.environ.get('repoze.who.logins', 0)
        """
        if not request.identity:
            login_counter = request.environ.get('repoze.who.logins', 0) + 1
            redirect('/login',
                params=dict(came_from=came_from, __logins=login_counter))

src/s/a/SAUCE-HEAD/sauce/controllers/error.py   SAUCE(Download)
    def document(self, *args, **kwargs):
        """Render the error document"""
        resp = request.environ.get('pylons.original_response')
        if not resp:  # pragma: no cover
            log.info('ErrorDocument without original_response')
            redirect(url('/'))
        code = request.params.get('code', resp.status_int)
        status = resp.status or code
 
        req = request.environ.get('pylons.original_request')
                '&nbsp;Go back</a></p>' % req.referer)
 
        values = dict(prefix=request.environ.get('SCRIPT_NAME', ''),
            status=status, code=code,
            message=request.params.get('message', message))

src/p/y/pyf.services-2.0.2/pyf/services/controllers/error.py   pyf.services(Download)
    def document(self, *args, **kwargs):
        """Render the error document"""
        resp = request.environ.get('pylons.original_response')
        default_message = ("<p>We're sorry but we weren't able to process "
                           " this request.</p>")
        values = dict(prefix=request.environ.get('SCRIPT_NAME', ''),

src/t/u/turbogears2-openshift-quickstart-HEAD/wsgi/tg2app/tg2app/controllers/error.py   turbogears2-openshift-quickstart(Download)
    def document(self, *args, **kwargs):
        """Render the error document"""
        resp = request.environ.get('pylons.original_response')
        default_message = ("<p>We're sorry but we weren't able to process "
                           " this request.</p>")
        values = dict(prefix=request.environ.get('SCRIPT_NAME', ''),

src/g/o/Gold-Rush-Server-HEAD/wsgi/tg2app/tg2app/controllers/error.py   Gold-Rush-Server(Download)
    def document(self, *args, **kwargs):
        """Render the error document"""
        resp = request.environ.get('pylons.original_response')
        default_message = ("<p>We're sorry but we weren't able to process "
                           " this request.</p>")
        values = dict(prefix=request.environ.get('SCRIPT_NAME', ''),

src/m/d/mdemos.server-1.0.1dev/mdemos/server/controllers/error.py   mdemos.server(Download)
    def document(self, *args, **kwargs):
        """Render the error document"""
        resp = request.environ.get('pylons.original_response')
        default_message = ("<p>We're sorry but we weren't able to process "
                           " this request.</p>")
        values = dict(prefix=request.environ.get('SCRIPT_NAME', ''),

src/t/u/turbogag-HEAD/turbogag/controllers/root.py   turbogag(Download)
    def login(self, came_from=lurl('/')):
        """Start the user login."""
        login_counter = request.environ.get('repoze.who.logins', 0)
        if login_counter > 0:
            flash(_('Wrong credentials'), 'warning')
        """
        if not request.identity:
            login_counter = request.environ.get('repoze.who.logins', 0) + 1
            redirect('/login',
                params=dict(came_from=came_from, __logins=login_counter))

src/t/u/turbogag-HEAD/turbogag/controllers/error.py   turbogag(Download)
    def document(self, *args, **kwargs):
        """Render the error document"""
        resp = request.environ.get('pylons.original_response')
        default_message = ("<p>We're sorry but we weren't able to process "
                           " this request.</p>")
        values = dict(prefix=request.environ.get('SCRIPT_NAME', ''),

src/a/c/acr-0.3.6/acr/controllers/error.py   acr(Download)
    def document(self, *args, **kwargs):
        """Render the error document"""
        resp = request.environ.get('pylons.original_response')
        default_message = ("<p>We're sorry but we weren't able to process "
                           " this request.</p>")
        values = dict(prefix=request.environ.get('SCRIPT_NAME', ''),

  1 | 2 | 3 | 4  Next