Logo Search packages:      
Sourcecode: zine version File versions  Download package

def zine::application::Zine::add_absolute_url (   self,
  handler 
)

Adds a new callback as handler for absolute URLs.  If the normal
request handling was unable to find a proper response for the request
the handler is called with the current request as argument and can
return a response that is then used as normal response.

If a handler doesn't want to handle the response it may raise a
`NotFound` exception or return `None`.

This is for example used to implement the pages support in Zine.

Definition at line 984 of file application.py.

00984                                        :
        """Adds a new callback as handler for absolute URLs.  If the normal
        request handling was unable to find a proper response for the request
        the handler is called with the current request as argument and can
        return a response that is then used as normal response.

        If a handler doesn't want to handle the response it may raise a
        `NotFound` exception or return `None`.

        This is for example used to implement the pages support in Zine.
        """
        self._absolute_url_handlers.append(handler)

    @setuponly
    def add_view(self, endpoint, callback):


Generated by  Doxygen 1.6.0   Back to index