本文整理汇总了Python中askomics.libaskomics.ParamManager.ParamManager.turtle_template方法的典型用法代码示例。如果您正苦于以下问题:Python ParamManager.turtle_template方法的具体用法?Python ParamManager.turtle_template怎么用?Python ParamManager.turtle_template使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类askomics.libaskomics.ParamManager.ParamManager
的用法示例。
在下文中一共展示了ParamManager.turtle_template方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: source_file_overview
# 需要导入模块: from askomics.libaskomics.ParamManager import ParamManager [as 别名]
# 或者: from askomics.libaskomics.ParamManager.ParamManager import turtle_template [as 别名]
def source_file_overview(self):
""" Get the first lines of the tabulated files to convert """
data = {}
sfc = SourceFileConvertor(self.settings, self.request.session)
pm = ParamManager(self.settings, self.request.session)
source_files_first_lines = sfc.get_first_lines(int(self.settings["askomics.overview_lines_limit"])) # FIXME handle default value/value validation
html_template = sfc.get_template(pm.ASKOMICS_html_template) # FIXME there must be a more elegant solution
#turtle_template = sfc.get_template(self.settings["askomics.turtle_template"]) # FIXME there must be a more elegant solution
turtle_template = pm.turtle_template()
data["sourceFiles"] = {s.get_name(): s.to_dict() for s in source_files_first_lines}
data["html_template"] = html_template
data["turtle_template"] = turtle_template
return data