Home | Trees | Index | Help |
|
---|
Package twisted :: Package web :: Module server :: Class Site |
|
Factory
--+ |ServerFactory
--+ |HTTPFactory
--+ | Site
Method Summary | |
---|---|
Initialize. | |
__getstate__(self)
| |
(internal) Generate an opaque, unique ID for a user's session. | |
Override in subclasses, e.g. | |
Generate a channel attached to this site. | |
Emulate a resource's getChild method. | |
Get a resource for a request. | |
Get a previously generated session, by its unique ID. | |
Generate a new Session instance, and store it for future reference. | |
Redirect because a Site is always a directory. | |
Inherited from HTTPFactory | |
Log a request's result to the logfile, by default in combined log format. | |
This will be called before I begin listening on a Port or Connector. | |
This will be called before I stop listening on all Ports/Connectors. | |
Inherited from Factory | |
Make sure startFactory is called. | |
Make sure stopFactory is called. |
Class Variable Summary | |
---|---|
int |
counter = 0 |
int |
displayTracebacks = 1 |
int |
isLeaf = 0 |
class |
requestFactory = twisted.web.server.Request |
Inherited from HTTPFactory | |
NoneType |
logPath = None |
int |
timeOut = 43200 |
Inherited from Factory | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
str |
noisy = 'sure, why not'
|
int |
numPorts = 0 |
NoneType |
protocol = None |
Method Details |
---|
__init__(self,
resource,
logPath=None,
timeout=43200)
Initialize.
|
_mkuid(self)(internal) Generate an opaque, unique ID for a user's session. |
_openLogFile(self, path)Override in subclasses, e.g. to use twisted.python.logfile.
|
buildProtocol(self, addr)Generate a channel attached to this site. |
getChildWithDefault(self, pathEl, request)Emulate a resource's getChild method. |
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(self, uid)Get a previously generated session, by its unique ID. This raises a KeyError if the session is not found. |
makeSession(self)Generate a new Session instance, and store it for future reference. |
render(self, request)Redirect because a Site is always a directory. |
Class Variable Details |
---|
counter
|
displayTracebacks
|
isLeaf
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:02 2004 | http://epydoc.sf.net |