Package trac :: Package web :: Module api

Module api

source code

Classes
  IAuthenticator
Extension point interface for components that can provide the name of the remote user.
  IRequestHandler
Decide which trac.core.Component handles which Request, and how.
  IRequestFilter
Enable components to interfere with the processing done by the main handler, either before and/or after it enters in action.
  ITemplateStreamFilter
Transform the generated content by filtering the Genshi event stream generated by the template, prior to its serialization.
  TracNotImplementedError
Raised when a NotImplementedError is trapped.
  HTTPException
  RequestDone
Marker exception that indicates whether request processing has completed and a response was sent.
  Cookie
  Request
Represents a HTTP request/response pair.
Functions
 
is_valid_default_handler(handler)
Returns True if the handler is a valid default handler, as described in the IRequestHandler interface documentation.
source code
 
parse_arg_list(query_string)
Parse a query string into a list of (name, value) tuples.
source code
 
arg_list_to_args(arg_list)
Convert a list of (name, value) tuples into into a _RequestArgs.
source code
Variables
  HTTP_STATUS = {100: 'Continue', 101: 'Switching Protocols', 20...
  __no_apidoc__ = ['HTTPBadRequest', 'HTTPUnauthorized', 'HTTPPa...
  __package__ = 'trac.web'

Imports: ABCMeta, BaseHTTPRequestHandler, CookieError, BaseCookie, SimpleCookie, cgi, datetime, hashlib, io, mimetypes, os, re, sys, urllib, urlparse, Interface, TracBaseError, TracError, as_bool, as_int, get_last_traceback, lazy, normalize_filename, http_date, localtz, Fragment, tag, empty, exception_to_unicode, to_unicode, _, N_, tag_, Href, is_client_disconnect_exception, HTTPBadGateway, HTTPBadRequest, HTTPConflict, HTTPExpectationFailed, HTTPForbidden, HTTPGatewayTimeout, HTTPGone, HTTPInternalServerError, HTTPLengthRequired, HTTPMethodNotAllowed, HTTPNotAcceptable, HTTPNotFound, HTTPNotImplemented, HTTPPaymentRequired, HTTPPreconditionFailed, HTTPProxyAuthenticationRequired, HTTPRequestEntityTooLarge, HTTPRequestTimeout, HTTPRequestUriTooLong, HTTPRequestedRangeNotSatisfiable, HTTPServiceUnavailable, HTTPUnauthorized, HTTPUnsupportedMediaType, HTTPVersionNotSupported


Variables Details

HTTP_STATUS

Value:
{100: 'Continue',
 101: 'Switching Protocols',
 200: 'Ok',
 201: 'Created',
 202: 'Accepted',
 203: 'Non-Authoritative Information',
 204: 'No Content',
 205: 'Reset Content',
...

__no_apidoc__

Value:
['HTTPBadRequest',
 'HTTPUnauthorized',
 'HTTPPaymentRequired',
 'HTTPForbidden',
 'HTTPNotFound',
 'HTTPMethodNotAllowed',
 'HTTPNotAcceptable',
 'HTTPProxyAuthenticationRequired',
...