Rework conf in plugins
This commit is contained in:
6
iwla.py
6
iwla.py
@@ -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' : {},
|
||||
|
||||
Reference in New Issue
Block a user