%s\n" % (trackerlink, status)
elif state == "Replaced":
return "%s\n" % (trackerlink, status)
elif state == "Withdrawn":
return "%s\n" % (trackerlink, status)
elif state == "Withdrawn by IETF":
return "%s\n" % (trackerlink, status)
elif state == "":
return "%s\n" % (trackerlink, status)
elif state == "Expired":
return "%s\n" % (trackerlink, status)
elif state == "RFC":
rfcnum = status.split()[1]
return "Published as %s" % (rfcnum, status)
elif state == "RFC Ed Queue":
return "%s" % (draft, status)
elif state == "Active":
return "%s\n" % (trackerlink, status)
else:
return "%s\n" % (trackerlink, status)
?>
%s" % (id, severity)
break
for component in [draft, draft.split("-",3)[-1], draft.split("-", 1)[-1]]:
if component in ticket_count:
count = ticket_count[component]
nopen = ticket_open.get(component, 0)
ndone = count - nopen
comment += """
""" % {"component":component, "open": nopen, "openpct": nopen*100/count, "closed": ndone, "closedpct": ndone*100/count, "count":count, "bugcolor": (nopen and "#E00" or "black"), }
break
return comment.encode("iso-8859-1")
?>
| " % (tstr(msgdate), mail, msg["subject"])
if len(msglist):
out("Announcements:\n")
out(" \n")
out(" \n")
msgkeys = msglist.keys()
msgkeys.sort()
msgkeys.reverse()
for msg in msgkeys:
out(msglist[msg])
out(" ")
?>
Working documents:
|
[%s]\n" % (name, show))
def mkcolorstr(color, thentime, interval):
import time
# change from full colour to half-intensity colour over
# time from , then go to no colour.
nowtime = time.time()
oldtime = nowtime - interval*2
depth = (thentime - oldtime)/(interval*2)
if depth < 0.5:
depth = 0
r, g, b = color
r = int(255 - (255 - r) * depth)
g = int(255 - (255 - g) * depth)
b = int(255 - (255 - b) * depth)
return "#%02x%02x%02x" % (r, g, b)
dir = os.listdir(".")
rfc_files = [ x for x in dir if re.match("^rfc[0-9]+(\.[a-z0-9])?\.txt$", x) ]
rfc_files.sort()
rfc_files.reverse()
wg_files = [ x for x in dir if re.match("^draft-.*\d\d(\..)?\.txt$", x) ]
wg_files.sort()
wg_files.reverse()
files = rfc_files
files.extend(wg_files)
for file in files:
whatis = []
out("\n")
mtime = getmtime(file)
out(" \n" % mkcolorstr((224,32,0), mtime, interval))
if mtime > time.time() - interval:
out(" New\n")
out(" | %s | \n" % tstr(getmtime(file)))
out(" %s" % (file, file))
base, ext = splitext(basename(file))
if file.startswith("rfc"):
out(" [txt/plain]\n" % (file))
else: # it should be a draft ...
out(" [txt/plain]\n" % (file))
out(" [txt/pdf]\n" % (base))
out(" [nits]\n" % (base))
maybeshow(base, "changes.html", "Changes")
maybeshow(base, "changes.txt", "Changes")
#maybeshow(base, "nits.txt", "no nits", "%s\n", "nits")
maybeshow(base, "html", "HTML")
maybeshow(base, "ps", "PS")
maybeshow(base, "pdf", "PDF")
maybeshow(base, "xml", "XML", "")
maybeshow(base, "tex", "TeX", "%% %s\n")
maybeshow(base, "nr", "nroff", "\" %s\n")
diffs = [ x for x in dir if re.match("^%s-.*\.diff\.html$"%base, x) ]
diffs.sort()
for diff in diffs:
if isfile(diff):
mtime = getmtime(diff)
if latest < mtime: latest = mtime
match = re.match("%s(.*)\.diff\.html"%base, diff)
if match:
name = match.group(1)
out(" [")
out("diff %s" % (diff, name))
if isfile(base + name + ".wdiff.html"):
out(", wdiff" % (base,name))
if isfile(base + name + ".diff.txt"):
out(", txt" % (base,name))
out("]\n")
# if isfile(base+name+".chbar"):
# mtime = getmtime(diff)
# if latest < mtime: latest = mtime
# out(" [changebars]\n" % (base, name))
out(" | \n \n")
whatstr="";
for what in whatis:
if whatstr:
whatstr = whatstr + " \n"
whatstr = whatstr + what
if whatstr:
out("\n | \n | \n \n")
if tracker:
whatstr = re.sub("(?i)issue ([0-9]+)", "Issue \g<1>"% tracker, whatstr)
whatstr = re.sub("(?i)section ([0-9.]*[0-9])", "\">Section \g<1>" % (wg, draft, file), whatstr)
whatstr = re.sub(" ]*>", " \n ", whatstr)
out(" (%s) \n" % whatstr)
out(" | \n \n")
out( "\n \n | \n \n | \n")
?>
Other drafts:
20:
split = show.rfind("-",0,20)
if split > 0:
out("%s \n " % (dir, show[:split]))
show = show[split:]
else:
break
out("%s \n" % (dir, show))
?>
|
|
Generated from PyHt script |
Latest update: - |