Table of Contents

Class: Site | Twisted-0.19.0/twisted/web/server.py
--- | ---
Base Classes |
--- | ---
http.HTTPFactory
Methods |
--- | ---
__getstate__ __init__ _mkuid _openLogFile buildProtocol | getChildWithDefault getResourceFor getSession makeSession render
| __getstate__
    __getstate__ ( self )
| __init__
    __init__ (
            self,
            resource,
            logPath=None,
            )
Initialize.
| _mkuid
    _mkuid ( self )
(internal) Generate an opaque, unique ID for a user's session.
| _openLogFile
    _openLogFile ( self,  path )
| buildProtocol
    buildProtocol ( self,  addr )
Generate a channel attached to this site.
| getChildWithDefault
    getChildWithDefault (
            self,
            pathEl,
            request,
            )
Emulate a resource's getChild method.
| getResourceFor
    getResourceFor ( self,  request )
### Get a resource for a request. This iterates through the resource heirarchy, calling getChildWithDefault on each resource it finds for a path element, stopping when it hits an element where isLeaf is true.
| getSession
    getSession ( self,  uid )
Get a previously generated session, by its unique ID. This raises a KeyError if the session is not found.
| makeSession
    makeSession ( self )
Generate a new Session instance, and store it for future reference.
| render
    render ( self,  request )
Redirect because a Site is always a directory.

Table of Contents

This document was automatically generated on Sun Jul 14 19:53:39 2002 by HappyDoc version 2.0