def projects(): """return TracProject templates installed as eggs""" templates = [] for entry_point in pkg_resources.iter_entry_points('paste.paster_create_template'): try: template = entry_point.load() except: continue if issubclass(template, TracProject): templates.append(template(entry_point.name)) return templates
def projects(): """return TracProject templates installed as eggs""" templates = [] for entry_point in pkg_resources.iter_entry_points( 'paste.paster_create_template'): try: template = entry_point.load() except: continue if issubclass(template, TracProject): templates.append(template(entry_point.name)) return templates