示例#1
0
文件: printable.py 项目: cuchac/lino
 def get_template_choices(cls, build_method, template_group):
     if not build_method:
         build_method = settings.SITE.site_config.default_build_method
     # bm = BuildMethods.get_by_value(build_method, None)
     bm = build_method
     from lino.utils.config import find_template_config_files
     return find_template_config_files(bm.template_ext, template_group)
示例#2
0
 def get_template_choices(cls,build_method,template_group):
     if not build_method:
         build_method = settings.SITE.site_config.default_build_method 
     #~ return get_template_choices(cls,build_method)
     bm = bm_dict.get(build_method,None)
     if bm is None:
         raise Exception("%r : invalid print method name." % build_method)
     from lino.utils.config import find_template_config_files
     #~ return find_template_config_files(bm.template_ext,bm.get_group(elem))
     return find_template_config_files(bm.template_ext,template_group)