Module: deluge
Branch: master
Commit: 5c42cfbf64b432208ba191496597ad98bf765c24

Author: Andrew Resch <[email protected]>
Date:   Thu Mar 25 15:01:15 2010 -0700

Fix pluginbase

---

 deluge/plugins/pluginbase.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/deluge/plugins/pluginbase.py b/deluge/plugins/pluginbase.py
index 3b4158b..18a406e 100644
--- a/deluge/plugins/pluginbase.py
+++ b/deluge/plugins/pluginbase.py
@@ -37,9 +37,11 @@ import deluge.component as component
 from deluge.log import LOG as log
 
 class PluginBase(component.Component):
+
+    update_interval = 1
+
     def __init__(self, name):
-        interval = self.update_interval if hasattr(self, update_interval) else 
1
-        super(PluginBase, self).__init__(name, interval)
+        super(PluginBase, self).__init__(name, self.update_interval)
                     
     def enable(self):
         raise NotImplementedError("Need to define an enable method!")
@@ -49,7 +51,7 @@ class PluginBase(component.Component):
 
 class CorePluginBase(PluginBase):
     def __init__(self, plugin_name):
-        super(PluginBase, self).__init__("CorePlugin." + plugin_name)
+        super(CorePluginBase, self).__init__("CorePlugin." + plugin_name)
         # Register RPC methods
         component.get("RPCServer").register_object(self, plugin_name.lower())
         log.debug("CorePlugin 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