Rework conf in plugins

This commit is contained in:
2014-11-24 21:42:57 +01:00
parent 549c0e5d97
commit d5db763b48
7 changed files with 19 additions and 25 deletions

View File

@@ -42,6 +42,12 @@ class IWLA(object):
conf.POST_HOOK_DIRECTORY : conf.post_analysis_hooks,
conf.DISPLAY_HOOK_DIRECTORY : conf.display_hooks}
def getConfValue(self, key, default):
if not key in dir(conf):
return default
else:
return conf.__dict__[key]
def _clearVisits(self):
self.current_analysis = {
'days_stats' : {},