Author: damoxc

Revision: 5720

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

Diff:
Modified: trunk/deluge/plugins/pluginbase.py
===================================================================
--- trunk/deluge/plugins/pluginbase.py  2009-09-09 16:39:35 UTC (rev 5719)
+++ trunk/deluge/plugins/pluginbase.py  2009-09-09 16:51:44 UTC (rev 5720)
@@ -56,6 +56,16 @@
         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..")



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to