Add has_subclasses checks for iplugins (prevent for loading parent class)
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
from iwla import IWLA
|
||||
from iplugin import IPlugin
|
||||
from display import *
|
||||
from plugins.post_analysis.feeds import IWLAPostAnalysisFeeds
|
||||
|
||||
"""
|
||||
Display hook
|
||||
@@ -60,6 +59,8 @@ class IWLADisplayFeeds(IPlugin):
|
||||
return True
|
||||
|
||||
def hook(self):
|
||||
from plugins.post_analysis.feeds import IWLAPostAnalysisFeeds
|
||||
|
||||
display = self.iwla.getDisplay()
|
||||
hits = self.iwla.getCurrentVisists()
|
||||
nb_feeds_parsers = 0
|
||||
@@ -88,7 +89,7 @@ class IWLADisplayFeeds(IPlugin):
|
||||
else:
|
||||
table.appendRow([address, super_hit['viewed_pages'], super_hit['viewed_hits']])
|
||||
page.appendBlock(table)
|
||||
note = DisplayHTMLRaw(self.iwla, ('<small>*%s</small>' % (self.iwla._('Merged feeds parsers'))))
|
||||
note = DisplayHTMLRaw(self.iwla, ('<small>*%s</small>' % (self.iwla._(u'Merged feeds parsers'))))
|
||||
page.appendBlock(note)
|
||||
display.addPage(page)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user