Skip to content

Commit 9f880a3

Browse files
committed
Port all still relevant changes between trunk before migration and charter branch to new trunk (mostly various minor template fixes), except 0.24 version of draft.py tool which has some interfaces changes that requires changes in the submit tool
- Legacy-Id: 4341
1 parent 8972ef7 commit 9f880a3

20 files changed

Lines changed: 63 additions & 50 deletions

ietf/liaisons/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def clean_organization(self):
361361
person = self.fake_person or self.person
362362
for i in self.hm.get_entities_for_person(person):
363363
all_entities += i[1]
364-
# If the from entity is one in wich the user has full privileges the to entity could be anyone
364+
# If the from entity is one in which the user has full privileges the to entity could be anyone
365365
if from_code in [i[0] for i in all_entities]:
366366
return to_code
367367
sdo_codes = ['sdo_%s' % i.sdo.pk for i in person.liaisonmanagers_set.all().distinct()]

ietf/templates/idrfc/ballot_writeup.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
{% autoescape off %}
22
Technical Summary
33

44
Relevant content can frequently be found in the abstract
@@ -47,4 +47,4 @@ IESG Note
4747
IANA Note
4848

4949
(Insert IANA Note here or remove section)
50-
50+
{% endautoescape%}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
{% autoescape off %}
12
Please DO NOT reply to this email.
23

34
I-D: {{ doc.file_tag|safe }}
45
ID Tracker URL: {{ url }}
56

67
{{ text }}
8+
{% endautoescape%}

ietf/templates/idrfc/doc_ballot.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{% comment %}
1+
{% comment %}<!--
22
Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
3-
All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>
3+
All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>
44
55
Redistribution and use in source and binary forms, with or without
66
modification, are permitted provided that the following conditions
@@ -30,7 +30,7 @@
3030
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3131
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3232
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33-
{% endcomment %}
33+
-->{% endcomment %}
3434
{% load ietf_filters %}
3535
<table class="ietf-ballot"><tr valign="top"><td class="left">
3636

@@ -86,12 +86,12 @@ <h2 class="ballot_ad"><a name="{{pos.ad_name|slugify}}">{% if pos.is_old_ad %}[{
8686

8787
{% ifequal pos.position "Discuss" %}
8888
<p><b>Discuss ({{pos.discuss_date}})</b> <img src="/images/comment.png" width="14" height="12" alt=""/></p>
89-
<pre>{{pos.discuss_text|fill:"80"|escape }}</pre>
89+
<pre>{{pos.discuss_text|wrap_text:80|escape }}</pre>
9090
{% endifequal %}
9191

9292
{% if pos.comment_text %}
9393
<p><b>Comment ({{pos.comment_date}})</b> <img src="/images/comment.png" width="14" height="12" alt=""/></p>
94-
<pre>{{pos.comment_text|fill:"80"|escape }}</pre>
94+
<pre>{{pos.comment_text|wrap_text:80|escape }}</pre>
9595
{% endif %}
9696
{% endfor %}
9797
</td></tr></table>

ietf/templates/idrfc/doc_history.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@
6262
<div id="commentS{{c.comment.id}}">{{ c.info.textSnippet|safe }}</div>
6363
<span class="comment_toggle" onclick="toggleComment({{c.comment.id}})" id="commentT{{c.comment.id}}">[show all]</span>
6464
<div id="commentF{{c.comment.id}}" style="display:none;">
65-
{{ c.info.text|fill:"80"|safe|urlize|linebreaksbr|keep_spacing|sanitize_html|safe }}
65+
{{ c.info.text|safe|urlize|linebreaksbr|keep_spacing|sanitize_html|safe }}
6666
</div>
6767
{% else %}
6868
{% if c.info.dontmolest %}
6969
{{ c.info.text|safe }}
7070
{% else %}
71-
{{ c.info.text|fill:"80"|safe|urlize|linebreaksbr|keep_spacing|sanitize_html|safe }}
71+
{{ c.info.text|safe|urlize|linebreaksbr|keep_spacing|sanitize_html|safe }}
7272
{% endif %}
7373
{% endif %}
7474
</td>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
{{ doc.file_tag|safe }} was just expired.
1+
{% autoescape off %}{{ doc.file_tag|safe }} was just expired.
22
This draft is in the state "{{ state }}" in the ID Tracker.
33

44

55
Thanks,
66
IETF Secretariat.
7+
{% endautoescape %}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
{% autoescape off %}
12
Last Call Request has been submitted for
23
{% for d in docs %}{{ d.file_tag|safe }}
34
{% endfor %}
45
{{ doc_url|safe }}
6+
{% endautoescape %}

ietf/templates/iesg/scribe_doc2.html

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% comment %}
1+
{% comment %}<!--
22
Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
33
All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>
44
@@ -30,45 +30,29 @@
3030
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3131
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3232
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33-
{% endcomment %}{% comment %}
33+
-->{% endcomment %}{% comment %}
3434
Some parts Copyright (c) 2009 The IETF Trust, all rights reserved.
3535
{% endcomment %}{% load ietf_filters %}
3636

3737
<!-- ============================================================ -->
3838
<p><b>{{ doc.obj.document.filename }}</b></p>
3939
{% if doc.obj.ballot.active %}
4040
<ol>
41-
{% if USE_DB_REDESIGN_PROXY_CLASSES %}
42-
4341
{% for p in doc.obj.active_positions|dictsort:"ad.last_name" %}
4442

4543
{% if p.pos and p.pos.pos_id == "discuss" %}
4644
<li><a name="{{doc.obj.document.filename}}+{{p.ad.plain_name|slugify}}+discuss">{{ p.ad.plain_name }}</a>: Discuss [{{ p.pos.discuss_time|date:"Y-m-d" }}]:<br>
47-
<pre>
48-
{{ p.pos.orig.discuss|fill:"80"|escape }}
49-
</pre>
45+
<pre>{{ p.pos.orig.discuss|wrap_text:80|escape }}</pre>
5046
</li>
5147
{% endif %}
5248

5349
{% if p.pos and p.pos.comment %}
5450
<li><a name="{{doc.obj.document.filename}}+{{p.ad.plain_name|slugify}}+comment">{{ p.ad.plain_name }}</a>: Comment [{{ p.pos.comment_time|date:"Y-m-d" }}]:<br>
55-
<pre>{{ p.pos.comment|fill:"80"|escape }}</pre>
51+
<pre>{{ p.pos.comment|wrap_text:80|escape }}</pre>
5652
</li>
5753
{% endif %}
5854
{% endfor %}
5955

60-
{% else %}
61-
62-
{% for position in doc.obj.ballot.positions.all|dictsort:"ad.last_name" %}{% ifequal position.discuss 1 %} <li><a name="{{doc.obj.document.filename}}+{{position.ad|slugify}}+discuss">{{ position.ad }}</a>:{% for item in doc.obj.ballot.discusses.all %}{% ifequal position.ad item.ad %} Discuss [{{ item.date }}]:<br>
63-
<pre>
64-
{{ item.text|fill:"80"|escape }}
65-
</pre>
66-
{% endifequal %}{% endfor %}{% endifequal %}{% for item in doc.obj.ballot.comments.all %}{% ifequal position.ad item.ad %} <li><a name="{{doc.obj.document.filename}}+{{position.ad|slugify}}+comment">{{ position.ad }}</a>: Comment [{{ item.date }}]:<br>
67-
<pre>{{ item.text|fill:"80"|escape }}</pre>
68-
{% endifequal %}{% endfor %}{% endfor %}
69-
70-
{%endif %}
71-
7256
</ol>
7357

7458
{% endif%}

ietf/templates/ietfworkflows/annotation_tags_updated_mail.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% autoescape off %}
12
The annotation tags of document {{ doc }} have been updated. See more information below.
23

34
Annotation tags set: {{ entry.setted }}
@@ -7,3 +8,4 @@ Author of the change: {{ entry.person }}
78

89
Comment:
910
{{ entry.comment }}
11+
{% endautoescape %}

ietf/templates/ietfworkflows/state_updated_mail.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% autoescape off %}
12
The state of document {{ doc }} has been updated. See more information below.
23

34
Previous state: {{ entry.from_state }}
@@ -7,3 +8,4 @@ Author of the change: {{ entry.person }}
78

89
Comment:
910
{{ entry.comment }}
11+
{% endautoescape %}

0 commit comments

Comments
 (0)