def install_module(transport, table, module): # Go to wizard if module declares one if module.install_wizard: wizard_url = reverse('wizard', kwargs={'block': module.install_wizard}) redirect.redirect(transport, wizard_url) return module.install() module.enable()
def finish(self, transport): mod = self.module() mod.install() mod.enable() redirect.redirect(transport, reverse('core:modules'))