Example #1
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)
Example #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)
Example #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)
Example #4
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)