def __init__ (self): ToolPlugin.__init__(self)
def remove (self): if hasattr(self,'pluggable'): self.pluggable.remove_hook(PRE,'import_cleanup',self.import_cleanup_hook) ToolPlugin.remove(self)
def remove(self): if hasattr(self, 'pluggable'): self.pluggable.remove_hook(PRE, 'import_cleanup', self.import_cleanup_hook) ToolPlugin.remove(self)
def activate (self, pluggable): ToolPlugin.activate(self,pluggable) pluggable.add_hook(PRE,'import_cleanup',self.import_cleanup_hook)
def activate(self, pluggable): ToolPlugin.activate(self, pluggable) pluggable.add_hook(PRE, 'import_cleanup', self.import_cleanup_hook)