def __init__(self, mapper=None):
        """
        Initialize a Controller subclass.  The `mapper` argument is
        used by the Application class to specify the Routes mapper
        being constructed.
        """

        # Build up our mapping of action to method
        self.wsgi_actions = dict((k, getattr(self, k))
                                 for k in self._wsgi_actions)
        self.wsgi_extensions = dict((k, [getattr(self, k)])
                                    for k in self._wsgi_extensions)

        # Storage place for method descriptors
        self.wsgi_descriptors = {}

        # Save the mapper
        self.wsgi_mapper = mapper

        # Set up our routes
        if mapper:
            for action, route in self.wsgi_actions.items():
                self._route(action, route)
def __init__ ( self , mapper = None ) : self . wsgi_actions = dict ( ( k , getattr ( self , k ) ) for k in self . _wsgi_actions ) self . wsgi_extensions = dict ( ( k , [ getattr ( self , k ) ] ) for k in self . _wsgi_extensions ) self . wsgi_descriptors = { } self . wsgi_mapper = mapper if mapper : for action , route in self . wsgi_actions . items ( ) : self . _route ( action , route )
Initialize a Controller subclass.  The `mapper` argument is
        used by the Application class to specify the Routes mapper
        being constructed.