コード例 #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
ファイル: mixins.py プロジェクト: lino-framework/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)
コード例 #3
0
ファイル: models.py プロジェクト: lino-framework/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)
コード例 #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)