Merged in [10684] from lars@netapp.com:

Add warning about the accuracy of bibliographic information for Legacy RFCs.
 - Legacy-Id: 10688
Note: SVN reference [10684] has been migrated to Git commit 2ca2b92c24
This commit is contained in:
Henrik Levkowetz 2016-01-14 17:33:50 +00:00
parent 73ba191164
commit 41c47b30ad
2 changed files with 17 additions and 8 deletions

View file

@ -125,14 +125,18 @@ def pipe(cmd, inp=None):
return out
def split_loginfo(line):
parts = line.split()
rev = parts[0][1:]
who = parts[2]
date = parts[4]
time = parts[5]
tz = parts[6]
when = tzparse.tzparse(" ".join(parts[4:7]), "%Y-%m-%d %H:%M:%S %Z")
when = when.astimezone(pytz.utc)
try:
parts = line.split()
rev = parts[0][1:]
who = parts[2]
date = parts[4]
time = parts[5]
tz = parts[6]
when = tzparse.tzparse(" ".join(parts[4:7]), "%Y-%m-%d %H:%M:%S %Z")
when = when.astimezone(pytz.utc)
except ValueError as e:
sys.stderr.write("Bad log line format: %s\n %s\n" % (line, e))
return rev, who, when
# ----------------------------------------------------------------------

View file

@ -3,6 +3,11 @@
{% load ietf_filters %}
{% if doc.get_state_slug == "rfc" %}
{% if doc.stream|slugify == "legacy" %}
% Datatracker information for RFCs on the Legacy Stream is unfortunately often
% incorrect. Please correct the bibtex below based on the information in the
% actual RFC at https://rfc-editor.org/rfc/rfc{{ doc.rfc_number }}.txt
{% endif %}
@misc{% templatetag openbrace %}rfc{{ doc.rfc_number }},
series = {Request for Comments},
number= {{ doc.rfc_number }},