def macro_RepoHeader(macro, arg1): repo_name = get_unicode(macro.request, arg1) if not repo_name: return "ERROR in RepoHeader. Usage: [[RepoHeader(repo_name)]]" try: repo_data = load_repo_manifest(repo_name) except UtilException, e: return str(e)
def macro_RepoHeader(macro, args): if ',' in args: args = args.split(',') else: args = args.split() if not args: return "ERROR in RepoHeader. Usage: [[RepoHeader(repo_name [packages stacks])]]" repo_name = get_unicode(macro.request, args[0]) if not repo_name: return "ERROR in RepoHeader. Usage: [[RepoHeader(repo_name [packages stacks])]]" try: repo_data = load_repo_manifest(repo_name) except UtilException, e: name = repo_name return CONTRIBUTE_TMPL % locals()
def macro_RepoHeader(macro, args): if ',' in args: args = args.split(',') else: args = args.split() if not args: return "ERROR in RepoHeader. Usage: [[RepoHeader(repo_name [packages stacks])]]" repo_name = get_unicode(macro.request, args[0]) if not repo_name: return "ERROR in RepoHeader. Usage: [[RepoHeader(repo_name [packages stacks])]]" try: repo_data = load_repo_manifest(repo_name) except UtilException, e: name = repo_name return CONTRIBUTE_TMPL%locals()