class documentation

class PythonScript(resource.Resource): (source)

View In Hierarchy

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.

Method __init__ Initialize me with a script name.
Method render Render me to a web client.
Class Variable is​Leaf Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource.
Instance Variable filename Undocumented
Instance Variable registry Undocumented

Inherited from Resource:

Method del​Entity Undocumented
Method get​Child Retrieve a 'child' resource from me.
Method get​Child​For​Request Undocumented
Method get​Child​With​Default Retrieve a static or dynamically generated child resource from me.
Method get​Dynamic​Entity Undocumented
Method get​Static​Entity Undocumented
Method list​Dynamic​Entities Undocumented
Method list​Dynamic​Names Undocumented
Method list​Entities Undocumented
Method list​Names Undocumented
Method list​Static​Entities Undocumented
Method list​Static​Names Undocumented
Method put​Child Register a static child.
Method really​Put​Entity Undocumented
Method render_​HEAD Default handling of HEAD method.
Class Variable server Undocumented
Instance Variable children Undocumented
def __init__(self, filename, registry): (source)
Initialize me with a script name.
def render(self, request): (source)

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.

isLeaf: bool = (source)
Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource.
filename = (source)

Undocumented

registry = (source)

Undocumented