def _pre_activate_injection(self):
        """
        Injects functions before the activation routine of child classes gets called
        """
        # Let's be sure that this plugins class is registered and available on application level under
        # application.plugins.classes. This allows to reuse this class for *new* plugins.
        if not self.app.plugins.classes.exist(self.__class__.__name__):
            self.app.plugins.classes.register([self.__class__])

        self._load_needed_plugins()

        self.app.signals.send("plugin_activate_pre", self)
def _pre_activate_injection ( self ) : if not self . app . plugins . classes . exist ( self . __class__ . __name__ ) : self . app . plugins . classes . register ( [ self . __class__ ] ) self . _load_needed_plugins ( ) self . app . signals . send ( "plugin_activate_pre" , self )
Injects functions before the activation routine of child classes gets called