本文整理汇总了Python中indico.web.assets.PluginEnvironment.debug方法的典型用法代码示例。如果您正苦于以下问题:Python PluginEnvironment.debug方法的具体用法?Python PluginEnvironment.debug怎么用?Python PluginEnvironment.debug使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类indico.web.assets.PluginEnvironment
的用法示例。
在下文中一共展示了PluginEnvironment.debug方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: includeTimetableCSSFiles
# 需要导入模块: from indico.web.assets import PluginEnvironment [as 别名]
# 或者: from indico.web.assets.PluginEnvironment import debug [as 别名]
def includeTimetableCSSFiles(cls, obj, params={}):
"""
Includes additional Css files.
"""
info = HelperMaKaCInfo.getMaKaCInfoInstance()
asset_env = PluginEnvironment('importer', os.path.dirname(__file__), 'importer')
asset_env.debug = info.isDebugActive()
asset_env.register('importer_css', Bundle('css/importer.css',
filters='cssmin',
output="importer__%(version)s.min.css"))
params['paths'].extend(asset_env['importer_css'].urls())
示例2: includeTimetableJSFiles
# 需要导入模块: from indico.web.assets import PluginEnvironment [as 别名]
# 或者: from indico.web.assets.PluginEnvironment import debug [as 别名]
def includeTimetableJSFiles(cls, obj, params={}):
"""
Includes additional javascript file.
"""
info = HelperMaKaCInfo.getMaKaCInfoInstance()
asset_env = PluginEnvironment('ictp_xlsimporter', os.path.dirname(__file__), '/ictp_xlsimporter')
asset_env.debug = info.isDebugActive()
asset_env.register('ictp_xlsimporter_js', Bundle('js/ictp_xlsimporter.js',
filters='rjsmin',
output="ictp_xlsimporter__%(version)s.min.js"))
params['paths'].extend(asset_env['ictp_xlsimporter_js'].urls())
示例3: includeMainJSFiles
# 需要导入模块: from indico.web.assets import PluginEnvironment [as 别名]
# 或者: from indico.web.assets.PluginEnvironment import debug [as 别名]
def includeMainJSFiles(self, obj, params={}):
"""
Includes additional javascript file.
"""
info = HelperMaKaCInfo.getMaKaCInfoInstance()
asset_env = PluginEnvironment('search', os.path.dirname(__file__), '/search')
asset_env.debug = info.isDebugActive()
asset_env.register('search', Bundle('js/search.js',
filters='rjsmin',
output="search__%(version)s.min.js"))
params['paths'].extend(asset_env['search'].urls())