Table of Contents

Class: Site | Twisted-0.17.4/twisted/web/server.py
--- | ---

Base Classes |
--- | ---
protocol.Factory

Methods |
--- | ---
__getstate__ __init__ _mkuid buildProtocol getChildWithDefault getResourceFor getSession makeSession render
| __getstate__

    __getstate__ ( self )

| __init__

    __init__ ( self,  resource )

Initialize.

| _mkuid

    _mkuid ( self )

(internal) Generate an opaque, unique ID for a user's session.

| 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 Sat Apr 20 01:31:53 2002 by HappyDoc version 2.0