improve the WebPluginBase class, registering it with the json rpc-api and adding space for scripts/stylesheets

This commit is contained in:
Damien Churchill 2009-09-09 16:51:44 +00:00
parent c333ad4f6a
commit c0276a541c
1 changed files with 10 additions and 0 deletions

View File

@ -56,6 +56,16 @@ class GtkPluginBase(PluginBase):
log.debug("GtkPlugin initialized..")
class WebPluginBase(PluginBase):
scripts = []
debug_scripts = []
stylesheets = []
debug_stylesheets = []
def __init__(self, plugin_name):
super(WebPluginBase, self).__init__("WebPlugin." + plugin_name)
# Register JSON rpc methods
component.get("JSON").register_object(self, plugin_name.lower())
log.debug("WebPlugin initialized..")