Notification update

This commit is contained in:
Ruud
2011-08-18 15:52:07 +02:00
parent b69bab4235
commit 31e57b9510
15 changed files with 112 additions and 70 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import os.path
import re
class Plugin():
class Plugin(object):
def conf(self, attr, default = None):
return Env.setting(attr, self.getName().lower(), default = default)
@@ -35,4 +35,4 @@ class Plugin():
return not self.isEnabled()
def isEnabled(self):
return self.conf('enabled')
return self.conf('enabled') or self.conf('enabled') == None