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

View file

@ -135,30 +135,33 @@
<p> <p>
You could either fetch and remember the different state groups of interest to you You could either fetch and remember the different state groups of interest to you
with queries like with queries like
</p>
<pre> <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-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-iesg'
$ curl 'https://datatracker.ietf.org/api/v1/doc/state/?format=json&limit=0&type__slug__in=draft-stream-ietf' $ curl 'https://datatracker.ietf.org/api/v1/doc/state/?format=json&limit=0&type__slug__in=draft-stream-ietf'
</pre> </pre>
</p>
<p> <p>
and then match the listed "resource_uri" of the results to the states listed for each and then match the listed "resource_uri" of the results to the states listed for each
document when you ask for document when you ask for
<pre>
$ curl 'https://datatracker.ietf.org/api/v1/doc/document/?limit=0&name__contains=-v6ops-'
</pre>
</p> </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 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: state first, then the IESG state, then the Stream state, and exclude earlier hits:
<pre> </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-rfceditor' ...
$ curl 'https://datatracker.ietf.org/api/v1/doc/document/?limit=0&name__contains=-v6ops-&states__type__slug__in=draft-iesg' ... $ curl 'https://datatracker.ietf.org/api/v1/doc/document/?limit=0&name__contains=-v6ops-&states__type__slug__in=draft-iesg' ...
</pre> </pre>
</p>
<p> <p>
etc. etc.
@ -179,36 +182,33 @@
<p> <p>
Personal API keys have some characteristics you should be aware of: Personal API keys have some characteristics you should be aware of:
<ul>
<li>
Each API key is valid only for a specific endpoint. If you try to use a key for
a different API endpoint than it's created for, it will not work.
</li>
<li>
The API keys will cause you to be given access with the datatracker
roles you have, thus giving you appropriate access to the various
API endpoints according to the role limitations indicated for each
endpoint.
</li>
<li>
An API key will only give you access to its related endpoint if you have logged
in to the datatracker using your regular login and password during the last
{{ settings.UTILS_APIKEY_GUI_LOGIN_LIMIT_DAYS }} days. If you receive the
error message "<code>Too long since last regular login</code>" you should do
a regular login in order to activate access.
</li>
</ul>
</p> </p>
<ul>
<li>
Each API key is valid only for a specific endpoint. If you try to use a key for
a different API endpoint than it's created for, it will not work.
</li>
<li>
The API keys will cause you to be given access with the datatracker
roles you have, thus giving you appropriate access to the various
API endpoints according to the role limitations indicated for each
endpoint.
</li>
<li>
An API key will only give you access to its related endpoint if you have logged
in to the datatracker using your regular login and password during the last
{{ settings.UTILS_APIKEY_GUI_LOGIN_LIMIT_DAYS }} days. If you receive the
error message "<code>Too long since last regular login</code>" you should do
a regular login in order to activate access.
</li>
</ul>
<h3 id="signing-keys" class="anchor-target">Signing Keys</h3> <h3 id="signing-keys" class="anchor-target">Signing Keys</h3>
<p> <p>
@ -244,7 +244,7 @@
<ul> <ul>
<li><code>apikey</code> (required) which is the personal API key hash</li> <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>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>discuss</code> (required if position is 'discuss') which is the discuss text</li>
<li><code>comment</code> (optional) which is comment text</li> <li><code>comment</code> (optional) which is comment text</li>
</ul> </ul>
@ -252,7 +252,7 @@
It returns an appropriate http result code, and a brief explanatory text message. It returns an appropriate http result code, and a brief explanatory text message.
</p> </p>
<p> <p>
Here is an example:</li> Here is an example:
</p> </p>
<pre> <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 $ 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. It returns an appropriate http result code, and a brief explanatory text message.
</p> </p>
<p> <p>
Here is an example:</li> Here is an example:
</p> </p>
<pre> <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 $ 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> <td>{{ m.to_name }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</<tbody> </tbody>
</table> </table>
{% endfor %} {% endfor %}
@ -116,7 +116,7 @@
<h2 class="anchor-target" id="references">References</h2> <h2 class="anchor-target" id="references">References</h2>
<ul> <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/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> <li><a href="https://www.ietf.org/rfc/rfc3797.txt">Publicly Verifiable Nominations Committee (NomCom) Random Selection (RFC 3797)</a></li>
</ul> </ul>
@ -138,4 +138,4 @@
{% block js %} {% block js %}
<script src="{% static "jquery.tablesorter/js/jquery.tablesorter.combined.min.js" %}"></script> <script src="{% static "jquery.tablesorter/js/jquery.tablesorter.combined.min.js" %}"></script>
{% endblock %} {% endblock %}

View file

@ -21,12 +21,12 @@
<p> <p>
This interface does not provide all the options which the regular submission tool does. This interface does not provide all the options which the regular submission tool does.
Some limitations: Some limitations:
<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>
<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: It takes 2 parameters:
</p> </p>
@ -38,7 +38,7 @@
It returns an appropriate http result code, and a brief explanatory text message. It returns an appropriate http result code, and a brief explanatory text message.
</p> </p>
<p> <p>
Here is an example:</li> Here is an example:
</p> </p>
<pre> <pre>
$ curl -S -F "user=user.name@example.com" -F "xml=@~/draft-user-example.xml" https://datatracker.ietf.org/api/submit $ curl -S -F "user=user.name@example.com" -F "xml=@~/draft-user-example.xml" https://datatracker.ietf.org/api/submit