예제 #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)
예제 #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)
예제 #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)
예제 #4
0
def require(context, *args, **kwargs):
    args = list(args)
    add_statics(context, js=args)
    return ''
예제 #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)
예제 #6
0
def require(context, *args, **kwargs):
    args = list(args)
    add_statics(context, js=args);
    return ''