Beispiel #1
0
 def activate(self):
     """Called when addon was activated"""
     if has_method(self.__class__, "coreReady"):
         self.log_warning(_("Deprecated method `coreReady`, use `activate` instead"))
         self.core_ready()
Beispiel #2
0
 def exit(self):
     """Called by pyload.shutdown just before pyLoad exit"""
     if has_method(self.__class__, "coreExiting"):
         self.core_exiting()
Beispiel #3
0
 def deactivate(self):
     """Called when addon was deactivated"""
     if has_method(self.__class__, "unload"):
         self.log_warning(_("Deprecated method `unload`, use `deactivate` instead"))
         self.unload()