Exemplo n.º 1
0
def group(context, *args, **kwargs):
    if 'id' not in kwargs or not kwargs['id']:
        raise Exception("Must supply an id for 'groupcontext'")
    id = kwargs['id']

    add_statics(context, js=["appfx/splunkui/groupcontext.js"])
    options = {'app': context['app_name'], 'contexts': args}
    options.update(kwargs)

    return component_context(context, "appfx-groupcontext", id, "context",
                             options)
Exemplo n.º 2
0
def group(context, *args, **kwargs):
    if 'id' not in kwargs or not kwargs['id']:
        raise Exception("Must supply an id for 'groupcontext'")
    id = kwargs['id']
    
    add_statics(context, js=["appfx/splunkui/groupcontext.js"])
    options = { 
        'app': context['app_name'],
        'contexts': args
    }
    options.update(kwargs) 
    
    return component_context(context, "appfx-groupcontext", id, "context", options)
Exemplo n.º 3
0
def search(context, id, **kwargs):
    add_statics(context, js=["appfx/splunkui/searchcontext.js"])
    options = {'app': context['app_name']}
    options.update(kwargs)
    return component_context(context, "appfx-searchcontext", id, "context",
                             options)
Exemplo n.º 4
0
def require(context, *args, **kwargs):
    args = list(args)
    add_statics(context, js=args)
    return ''
Exemplo n.º 5
0
def search(context, id, **kwargs):
    add_statics(context, js=["appfx/splunkui/searchcontext.js"])
    options = { 'app': context['app_name'] }
    options.update(kwargs)
    return component_context(context, "appfx-searchcontext", id, "context", options)
Exemplo n.º 6
0
def require(context, *args, **kwargs):
    args = list(args)
    add_statics(context, js=args);
    return ''