Source code for aj.plugins.core.api.sidebar

from jadi import interface, service
from aj.auth import authorize, SecurityError


@interface
[docs]class SidebarItemProvider(object): """ Interface for providing sidebar items. """ def __init__(self, context): pass
[docs] def provide(self): """ Should return a list of sidebar items, each in the following format:: { 'id': 'optional-id', 'attach': 'category:general', # id of the attachment point or None for top level 'name': 'Dashboard', 'icon': 'bar-chart', 'url': '/view/dashboard', 'children': [ ... ] } :returns: list(dict) """ return []
@service

Comments

comments powered by Disqus