GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( cc823b...3d112a )
by PyJobs
9s
created

BaseController.__call__()   A

Complexity

Conditions 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
1
# -*- coding: utf-8 -*-
2
"""The base Controller API."""
3
4
from tg import TGController, tmpl_context
5
from tg import request
6
7
8
__all__ = ['BaseController']
9
10
11
class BaseController(TGController):
12
    """
13
    Base class for the controllers in the application.
14
15
    Your web application should have one of these. The root of
16
    your application is used to compute URLs used by your app.
17
18
    """
19
20
    def __call__(self, environ, context):
21
        """Invoke the Controller"""
22
        # TGController.__call__ dispatches to the Controller method
23
        # the request is routed to.
24
25
        tmpl_context.identity = request.identity
26
27
        return TGController.__call__(self, environ, context)
28