示例#1
0
文件: mixins.py 项目: forexblog/lino
 def get_template_choices(cls, build_method, template_groups):
     if not build_method:
         build_method = BuildMethods.get_system_default()
     if not build_method:
         return []
     return rt.find_template_config_files(build_method.template_ext,
                                          *template_groups)
示例#2
0
 def get_template_choices(cls, build_method, template_groups):
     if not build_method:
         build_method = BuildMethods.get_system_default()
     if not build_method:
         return []
     return rt.find_template_config_files(
         build_method.template_ext, *template_groups)
示例#3
0
 def template_choices(cls):
     bm = rt.models.printing.BuildMethods.get_system_default()
     return rt.find_template_config_files(
         bm.template_ext, cls.templates_group)
示例#4
0
文件: models.py 项目: einarfelix/xl
 def template_choices(cls):
     bm = rt.models.printing.BuildMethods.get_system_default()
     return rt.find_template_config_files(bm.template_ext,
                                          cls.templates_group)