File: trac_web_main.rst

package info (click to toggle)
trac 1.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,620 kB
  • sloc: python: 81,903; javascript: 2,219; makefile: 561; sh: 92; xml: 12
file content (44 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
:mod:`trac.web.main` -- Trac Web Entry Point
============================================

.. module :: trac.web.main

Entry point for dispatching web requests.


`trac.web.dispatch_request`
---------------------------

The WSGI compliant callable.  It adapts the ``environ`` information
passed from the WSGI gateway and retrieve the appropriate
`~trac.env.Environment` from it, creates a `~trac.web.api.Request`
instance and let the `RequestDispatcher` component forward it to the
component implementing a matching `~trac.web.api.IRequestHandler`.

.. autofunction :: dispatch_request


Components
----------

.. autoclass :: RequestDispatcher
   :members:


Classes
-------

.. autoclass :: RequestWithSession


Helper Functions
----------------

.. autofunction :: get_environments
.. autofunction :: get_tracignore_patterns


Miscellaneous
-------------

.. autodata :: default_tracker