twisted.web.script

Package twisted :: Package web :: Module script |
[frames | no frames]

## Module twisted.web.script

I contain PythonScript, which is a very simple python script resource.

Classes
`CacheScanner` |
`PythonScript` | I am an extremely simple dynamic resource; an embedded python script.
`ResourceScriptDirectory` |
`ResourceScriptWrapper` |

Exceptions
`AlreadyCached` | This exception is raised when a path has already been cached.

Function Summary
| ``ResourceScript`(path, registry)` I am a normal py file which must define a 'resource' global, which should be an instance of (a subclass of) web.resource.Resource; it will be renderred.
| `ResourceTemplate(path, registry)`

Variable Summary
`ErrorPage` | `noRsrc` = `<twisted.web.error.ErrorPage instance at 0x8749...`
`str` | `rpyNoResource` = `'<p>You forgot to assign to the variable...`

Function Details

### ResourceScript(path, registry) I am a normal py file which must define a 'resource' global, which should be an instance of (a subclass of) web.resource.Resource; it will be renderred.

Variable Details

    ### noRsrc Type: `ErrorPage` Value:
        <twisted.web.error.ErrorPage instance at 0x87491ec>

    ### rpyNoResource Type: `str` Value:
        '''<p>You forgot to assign to the variable "resource" in your script. \
        For example:</p>
        <pre>
        # MyCoolWebApp.rpy

        import mygreatresource

        resource = mygreatresource.MyGreatResource()
        ...

Generated by Epydoc 2.0 on Sat May 15 20:08:57 2004 | http://epydoc.sf.net