web.panel.panel

Package web :: Package panel :: Module panel |
[hide private]
[frames] | no frames]

# Source Code for Module web.panel.panel

     1  import web
     2
     3 -class Panel:
     4      '''
     5      This class is a view where the plugins' actions are showed to the user.
     6      When the user clicks a action the framework go to the corresponding view.
     7      '''
     8 -    def GET(self):
     9          plugins = web.ctx.plugin_manager.get_enabled_plugins()
    10          actions = []
    11
    12          for plugin in plugins:
    13              actions += (a for a in plugin.get_main_panel_actions())
    14
    15          sorted(actions, key=lambda x: x.get_human_name())
    16
    17          return web.ctx.render.panel.panel(actions)
    18