OPSI.web2.plugin module¶
I’m a set of utility functions and resources for using twisted.plugins to locate resources.
Example Usage: root.putChild(‘test’, resourcePlugger(‘TestResource’))
-
class
OPSI.web2.plugin.NoPlugin(plugin)¶ Bases:
OPSI.web2.resource.LeafResource-
render(req)¶
-
-
class
OPSI.web2.plugin.PluginResource(*args, **kwargs)¶ Bases:
OPSI.web2.resource.Resource
-
class
OPSI.web2.plugin.TestResource(foo=None, bar=None)¶ Bases:
OPSI.web2.plugin.PluginResource,OPSI.web2.resource.LeafResource-
locateChild(req, segments)¶
-
render(req)¶
-
-
OPSI.web2.plugin.resourcePlugger(name, *args, **kwargs)¶