Part of twisted.web2.twcgi View Source View In Hierarchy
| Parameters | pathname | A path to the directory that you wish to serve CGI scripts from, for example /var/www/cgi-bin/ |
| Method | __init__ | Undocumented |
| Method | locateChild | Locates a child resource of this resource. |
| Method | render | Subclasses should implement this method to do page rendering. |
Inherited from Resource:
| Method | child_ | This method locates a child with a trailing "/"
in the URL. |
| Method | putChild | Register a static child. |
| Method | http_GET | Respond to a GET request. |
Inherited from RenderMixin (via Resource):
| Method | allowedMethods | |
| Method | checkPreconditions | Checks all preconditions imposed by this resource upon a request made |
| Method | renderHTTP | See iweb.IResource.renderHTTP. |
| Method | http_OPTIONS | Respond to a OPTIONS request. |
| Method | http_TRACE | Respond to a TRACE request. |
| Method | http_HEAD | Respond to a HEAD request. |
Inherited from FilePath:
| Method | __getstate__ | Undocumented |
| Method | child | Undocumented |
| Method | preauthChild | Use me if `path' might have slashes in it, but you know they're safe. |
| Method | childSearchPreauth | Return my first existing child with a name in 'paths'. |
| Method | siblingExtensionSearch | Attempt to return a path with my name, given multiple possible |
| Method | realpath | Returns the absolute target as a FilePath if self is a link, self |
| Method | siblingExtension | Undocumented |
| Method | linkTo | Creates a symlink to self to at the path in the FilePath |
| Method | open | Open this file using mode or for writing if
alwaysCreate is |
| Method | restat | Re-calculate cached effects of 'stat'. To refresh information on this path |
| Method | changed | Clear any cached information about the state of this path on disk. |
| Method | chmod | Changes the permissions on self, if possible. Propagates errors from |
| Method | getsize | Undocumented |
| Method | getModificationTime | Retrieve the time of last access from this file. |
| Method | getStatusChangeTime | Retrieve the time of the last status change for this file. |
| Method | getAccessTime | Retrieve the time that this file was last accessed. |
| Method | exists | Check if the path exists. |
| Method | isdir | Undocumented |
| Method | isfile | Undocumented |
| Method | islink | Undocumented |
| Method | isabs | Undocumented |
| Method | listdir | Undocumented |
| Method | splitext | Undocumented |
| Method | __repr__ | Undocumented |
| Method | touch | Undocumented |
| Method | remove | Removes the file or directory that is represented by self. If |
| Method | makedirs | Create all directories not yet existing in path segments,
using |
| Method | globChildren | Assuming I am representing a directory, return a list of |
| Method | basename | Undocumented |
| Method | dirname | Undocumented |
| Method | parent | Undocumented |
| Method | setContent | Replace the file at this path with a new file that contains the given |
| Method | __cmp__ | Undocumented |
| Method | createDirectory | Undocumented |
| Method | requireCreate | Undocumented |
| Method | create | Exclusively create a file, only if this file previously did not exist. |
| Method | temporarySibling | Construct a path referring to a sibling of this path. |
| Method | copyTo | Copies self to destination. |
| Method | moveTo | Move self to destination - basically renaming self to whatever |
Inherited from _PathHelper (via FilePath):
| Method | getContent | Undocumented |
| Method | parents | |
| Method | children | List the children of this path object. |
| Method | walk | Yield myself, then each of my children, and each of those children's |
| Method | sibling | Undocumented |
| Method | descendant | Retrieve a child or child's child of this path. |
| Method | segmentsFrom | Return a list of segments between a child and its ancestor. |
| Method | __hash__ | Hash the same as another FilePath with the same path as mine. |
| Method | getmtime | Deprecated. Use getModificationTime instead. |
| Method | getatime | Deprecated. Use getAccessTime instead. |
| Method | getctime | Deprecated. Use getStatusChangeTime instead. |
| Parameters | request | the request to process. |
| segments | a sequence of URL path segments. | |
| Returns | a tuple of (child, segments) containing the child of this
resource which matches one or more of the given segments in
sequence, and a list of remaining segments.
| |
http_GET.| Parameters | request | the request to process. |
| Returns | an object adaptable to iweb.IResponse.
| |