Fixed various html issues.

- Legacy-Id: 15032
This commit is contained in:
Henrik Levkowetz 2018-04-08 15:56:33 +00:00
parent 33e7be35e3
commit 39d6dee878
4 changed files with 51 additions and 51 deletions

View file

@ -21,6 +21,7 @@ except ImportError:
pass
from ietf.mailinglists.models import List, Subscribed
from ietf.utils.text import decode
def import_mailman_listinfo(verbosity=0):
def note(msg):
@ -38,14 +39,13 @@ def import_mailman_listinfo(verbosity=0):
mlist = MailList.MailList(name, lock=False)
note("List: %s" % mlist.internal_name())
description = mlist.description.decode('latin1')[:256]
lists = List.objects.filter(name=mlist.real_name)
if lists.count() > 1:
# Arbitrary choice; we'll update the remaining item next
for item in lists[1:]:
item.delete()
mmlist, created = List.objects.get_or_create(name=mlist.real_name)
mmlist.description = description
mmlist.description = decode(mlist.description)[:256]
mmlist.advertised = mlist.advertised
mmlist.save()
# The following calls return lowercased addresses

View file

@ -135,30 +135,33 @@
<p>
You could either fetch and remember the different state groups of interest to you
with queries like
</p>
<pre>
$ curl 'https://datatracker.ietf.org/api/v1/doc/state/?format=json&limit=0&type__slug__in=draft-rfceditor'
$ curl 'https://datatracker.ietf.org/api/v1/doc/state/?format=json&limit=0&type__slug__in=draft-iesg'
$ curl 'https://datatracker.ietf.org/api/v1/doc/state/?format=json&limit=0&type__slug__in=draft-stream-ietf'
</pre>
</p>
<p>
and then match the listed "resource_uri" of the results to the states listed for each
document when you ask for
</p>
<pre>
$ curl 'https://datatracker.ietf.org/api/v1/doc/document/?limit=0&name__contains=-v6ops-'
</pre>
</p>
<p>
Or alternatively you could do a series of queries asking for matches to the RFC Editor
state first, then the IESG state, then the Stream state, and exclude earlier hits:
</p>
<pre>
$ curl 'https://datatracker.ietf.org/api/v1/doc/document/?limit=0&name__contains=-v6ops-&states__type__slug__in=draft-rfceditor' ...
$ curl 'https://datatracker.ietf.org/api/v1/doc/document/?limit=0&name__contains=-v6ops-&states__type__slug__in=draft-iesg' ...
</pre>
</p>
<p>
etc.
@ -179,6 +182,7 @@
<p>
Personal API keys have some characteristics you should be aware of:
</p>
<ul>
<li>
@ -206,10 +210,6 @@
</ul>
</p>
<h3 id="signing-keys" class="anchor-target">Signing Keys</h3>
<p>
@ -244,7 +244,7 @@
<ul>
<li><code>apikey</code> (required) which is the personal API key hash</li>
<li><code>doc</code> (required) which is the balloted document name</li>
<li><code>position</code> (required) which is the position slug, one of: <tt>yes, noobj, block, discuss, abstain, recuse, norecord</tt>. </li>
<li><code>position</code> (required) which is the position slug, one of: <span class="samp">yes, noobj, block, discuss, abstain, recuse, norecord</span>. </li>
<li><code>discuss</code> (required if position is 'discuss') which is the discuss text</li>
<li><code>comment</code> (optional) which is comment text</li>
</ul>
@ -252,7 +252,7 @@
It returns an appropriate http result code, and a brief explanatory text message.
</p>
<p>
Here is an example:</li>
Here is an example:
</p>
<pre>
$ curl -S -F "apikey=AwAAABVR3D5GHkVMhspKSxBCVknGMmqikNIhT85kSnghjaV_pYy26WV92mm-jpdi" -F "doc=draft-ietf-lamps-eai-addresses" -F "position=noobj" -F "comment=Comment text" https://datatracker.ietf.org/api/iesg/position
@ -289,7 +289,7 @@
It returns an appropriate http result code, and a brief explanatory text message.
</p>
<p>
Here is an example:</li>
Here is an example:
</p>
<pre>
$ curl -S -F "apikey=DgAAAMLSi3coaE5TjrRs518xO8eBRlCmFF3eQcC8_SjUTtRGLGiJh7-1SYPT5WiS" -F "meeting=101" -F "group=mptcp" -F "item=1" -F "url=https://foo.example/beer/mptcp" https://datatracker.ietf.org/api/meeting/session/video/url

View file

@ -49,7 +49,7 @@
<td>{{ m.to_name }}</td>
</tr>
{% endfor %}
</<tbody>
</tbody>
</table>
{% endfor %}
@ -116,7 +116,7 @@
<h2 class="anchor-target" id="references">References</h2>
<ul>
<li><a href="https://www.ietf.org/rfc/rfc2026.txt">The Internet Standards Process (RFC 2026)</a></li>
<li><a href="https://www.ietf.org/rfc/rfc3777.txt">IAB and IESG Selection, Confirmation, and Recall Process: Operation of the Nominating and Recall </a>Committees (RFC 3777) (Also BCP10)</a>
<li><a href="https://www.ietf.org/rfc/rfc3777.txt">IAB and IESG Selection, Confirmation, and Recall Process: Operation of the Nominating and Recall </a>Committees (RFC 3777) (Also BCP10)
<li><a href="https://www.ietf.org/rfc/rfc3797.txt">Publicly Verifiable Nominations Committee (NomCom) Random Selection (RFC 3797)</a></li>
</ul>

View file

@ -21,12 +21,12 @@
<p>
This interface does not provide all the options which the regular submission tool does.
Some limitations:
</p>
<ul>
<li>Only xml-only uploads are supported, not text or combined.</li>
<li>Document replacement information cannot be supplied.</li>
<li>The server expects <code>multipart/form-data</code>, supported by <code>curl</code> but <b>not</b> by <code>wget</code></li>
</ul>
</p>
<p>
It takes 2 parameters:
</p>
@ -38,7 +38,7 @@
It returns an appropriate http result code, and a brief explanatory text message.
</p>
<p>
Here is an example:</li>
Here is an example:
</p>
<pre>
$ curl -S -F "user=user.name@example.com" -F "xml=@~/draft-user-example.xml" https://datatracker.ietf.org/api/submit