예제 #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
파일: 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)