I am an extremely simple dynamic resource; an embedded python script.
This will execute a file (usually of the extension .epy ) as Python code,
internal to the webserver.
Methods
|
|
__init__
render
|
|
__init__
|
__init__ ( self, filename )
Initialize me with a script name.
|
|
render
|
render ( self, request )
Render me to a web client.
Load my file, execute it in a special namespace (with request and
__file__ global vars) and finish the request. Output to the web-page
will NOT be handled with print - standard output goes to the log - but
with request.write.
|
|