本文整理汇总了Python中tagutils.component_context函数的典型用法代码示例。如果您正苦于以下问题:Python component_context函数的具体用法?Python component_context怎么用?Python component_context使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了component_context函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: searchbar
def searchbar(context, id, timerange=True, **kwargs):
if 'timepicker' in kwargs:
logger.warn(
'The "%s" parameter of template tag "%s" is deprecated. Use "%s" instead.',
'timepicker', 'searchbar', 'timerange')
timerange = kwargs.pop('timepicker')
kwargs['timerange'] = timerange
return component_context(context, "splunk-searchbar", id, "view", "splunkjs/mvc/searchbarview", kwargs)
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:8,代码来源:splunkmvc.py
示例2: group
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)
开发者ID:skada,项目名称:splunk-appframework,代码行数:13,代码来源:splunkui.py
示例3: dataview
def dataview(context, id, **kwargs):
return component_context(context, "appfx-dataview", id, "control", kwargs)
开发者ID:skada,项目名称:splunk-appframework,代码行数:2,代码来源:splunkui.py
示例4: postprocessmanager
def postprocessmanager(context, id, **kwargs):
options = { 'app': context['app_name'] }
options.update(kwargs)
return component_context(context, "splunk-postprocessmanager", id, "manager", "splunkjs/mvc/postprocessmanager", options)
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:4,代码来源:splunkmvc.py
示例5: radiogroup
def radiogroup(context, id, **kwargs):
return component_context(context, "splunk-radiogroup", id, "view", "splunkjs/mvc/radiogroupview", kwargs)
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:2,代码来源:splunkmvc.py
示例6: googlemap
def googlemap(context, id, **kwargs):
return component_context(context, "splunk-googlemap", id, "view", "splunkjs/mvc/googlemapview", kwargs)
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:2,代码来源:splunkmvc.py
示例7: dropdown
def dropdown(context, id, **kwargs):
return component_context(context, "splunk-dropdown", id, "view", "splunkjs/mvc/dropdownview", kwargs)
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:2,代码来源:splunkmvc.py
示例8: d3chart
def d3chart(context, id, *args, **kwargs):
return component_context(context, "splunk-d3chart", id, "view", "splunkjs/mvc/d3chart/d3chartview", kwargs)
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:2,代码来源:splunkmvc.py
示例9: chart
def chart(context, id, **kwargs):
return component_context(context, "splunk-chart", id, "view", "splunkjs/mvc/chartview", kwargs)
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:2,代码来源:splunkmvc.py
示例10: search
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)
开发者ID:skada,项目名称:splunk-appframework,代码行数:5,代码来源:splunkui.py
示例11: resulttable
def resulttable(context, id, **kwargs):
return component_context(context, "appfx-resulttable", id, "control", kwargs)
开发者ID:skada,项目名称:splunk-appframework,代码行数:2,代码来源:splunkui.py
示例12: radio
def radio(context, id, **kwargs):
return component_context(context, "appfx-radio", id, "control", kwargs)
开发者ID:skada,项目名称:splunk-appframework,代码行数:2,代码来源:splunkui.py
示例13: paginator
def paginator(context, id, **kwargs):
return component_context(context, "appfx-paginator", id, "control", kwargs)
开发者ID:skada,项目名称:splunk-appframework,代码行数:2,代码来源:splunkui.py
示例14: jobstatus
def jobstatus(context, id, **kwargs):
return component_context(context, "appfx-jobstatus", id, "control", kwargs)
开发者ID:skada,项目名称:splunk-appframework,代码行数:2,代码来源:splunkui.py
示例15: googlemap
def googlemap(context, id, **kwargs):
return component_context(context, "appfx-googlemap", id, "control", kwargs)
开发者ID:skada,项目名称:splunk-appframework,代码行数:2,代码来源:splunkui.py
示例16: footer
def footer(context, id, **kwargs):
return component_context(context, "splunk-footer", id, "view", "splunkjs/mvc/footerview", kwargs, classes="footer")
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:2,代码来源:splunkmvc.py
示例17: splunkmap
def splunkmap(context, id, **kwargs):
return component_context(context, "splunk-map", id, "view", "splunkjs/mvc/splunkmapview", kwargs)
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:2,代码来源:splunkmvc.py
示例18: searchcontrols
def searchcontrols(context, id, **kwargs):
return component_context(context, "splunk-searchcontrols", id, "view", "splunkjs/mvc/searchcontrolsview", kwargs)
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:2,代码来源:splunkmvc.py
示例19: view
def view(context, type=None, id=None, require='', **kwargs):
if not type or not id:
raise Error("Must supply type and id.")
return component_context(context, type, id, "view", require, kwargs)
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:4,代码来源:splunkmvc.py
示例20: single
def single(context, id, **kwargs):
return component_context(context, "splunk-single", id, "view", "splunkjs/mvc/singleview", kwargs)
开发者ID:SanjeebJena,项目名称:splunk-webframework,代码行数:2,代码来源:splunkmvc.py
注:本文中的tagutils.component_context函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论