本文整理匯總了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