\n" % (var, os.environ[var])) def get_mnum(str): if str: try: pref = "charter-%s-"%wg return str[str.index(pref)+len(pref):str.rindex(".")] except ValueError: try: return str[str.index(".2"):str.rindex(",")][1:] except ValueError: return str[8:str.find(".")] else: return str item = args.get("item") if dirlist: if not item: # Handle urls of the form /wg/wgname/agenda.pyht/64 path_info = os.environ["PATH_TRANSLATED"].replace(filename, "")[1:] if path_info: item = page+path_info+".html" if not item in dirlist: item = page+path_info+".txt" if not item in dirlist: item = None current_meeting = filetext("../../meta/current-ietf-number.txt").strip() if not item: item = dirlist[-1] if item: try: if item[-5:] == ".html": file = open(item) content = file.read() file.close() else: from pipe import pipe del os.environ["QUERY_STRING"] os.environ["SCRIPT_NAME"]="/html" code, content, err = pipe('/www/tools.ietf.org/tools/rfcmarkup/rfcmarkup "staticpath=/html&blurb=0&doc=%s"' % item) #url = "https://tools.ietf.org/tools/rfcmarkup/rfcmarkup.cgi?blurb=0&optstatic=/html&doc=%s" % (item) #file = urllib.urlopen(url) #content = file.read() #file.close() if "Sorry, couldn't find" in content or (code != 0): file = open(item) content = "
"+file.read()+"
" file.close() else: content = re.sub("(?i)<(!DOCTYPE|/?html|/?body)[^>]*>\n*", "", content) content = re.sub("(?si)]*>.*\n*", "", content) content = re.sub("(?si)]*>.*\n*", "", content) content = re.sub(' *
', '', content) if re.search("

%s %s

\n" % (num, page)) print content ?>

All charter page changes, including changes to draft-list, rfc-list and milestones: