Package web :: Package pluginmanager :: Module enableview
[hide private]
[frames] | no frames]

Source Code for Module web.pluginmanager.enableview

 1  import web 
 2   
 3  from decorators import i18n 
4 5 -class EnableView:
6 @i18n
7 - def GET(self, plugin_to_enable):
8 enable_plugins = web.ctx.plugin_manager.enable_plugin(plugin_to_enable) 9 # If there isn't new enabled plugins 10 if not enable_plugins: 11 raise web.seeother('/pluginmanager') 12 13 plugins_name = (p.name for p in enable_plugins) 14 string_name = ', '.join(plugins_name) 15 16 web.ctx.notify(_('The next plugins has been enabled: %s' 17 % string_name), 'notification') 18 19 raise web.seeother('/pluginmanager')
20