Skip to content

Commit e76136f

Browse files
committed
Fixed reverse urls in tests, removed a commented out block from a template, fixed a typo in a directory setting
- Legacy-Id: 4599
1 parent c93e6a7 commit e76136f

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

ietf/idrfc/testsREDESIGN.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ class EditPositionTestCase(django.test.TestCase):
411411

412412
def test_edit_position(self):
413413
draft = make_test_data()
414-
url = urlreverse('doc_edit_position', kwargs=dict(name=draft.name,
414+
url = urlreverse('ietf.idrfc.views_ballot.edit_position', kwargs=dict(name=draft.name,
415415
ballot_id=draft.latest_event(BallotDocEvent, type="created_ballot").pk))
416416
login_testing_unauthorized(self, "ad", url)
417417

@@ -473,7 +473,7 @@ def test_edit_position(self):
473473

474474
def test_edit_position_as_secretary(self):
475475
draft = make_test_data()
476-
url = urlreverse('doc_edit_position', kwargs=dict(name=draft.name,
476+
url = urlreverse('ietf.idrfc.views_ballot.edit_position', kwargs=dict(name=draft.name,
477477
ballot_id=draft.latest_event(BallotDocEvent, type="created_ballot").pk))
478478
ad = Person.objects.get(name="Aread Irector")
479479
url += "?ad=%s" % ad.pk
@@ -498,7 +498,7 @@ def test_edit_position_as_secretary(self):
498498

499499
def test_cannot_edit_position_as_pre_ad(self):
500500
draft = make_test_data()
501-
url = urlreverse('doc_edit_position', kwargs=dict(name=draft.name,
501+
url = urlreverse('ietf.idrfc.views_ballot.edit_position', kwargs=dict(name=draft.name,
502502
ballot_id=draft.latest_event(BallotDocEvent, type="created_ballot").pk))
503503

504504
# transform to pre-ad

ietf/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
RFC_PATH = '/a/www/ietf-ftp/rfc/'
196196
CHARTER_PATH = '/a/www/ietf-ftp/charters/'
197197
CHARTER_TXT_URL = 'http://www.ietf.org/charter/'
198-
CONFLICT_REVIEW_PATH = '/a/wwww/ietf-ftp/conflict_reviews'
198+
CONFLICT_REVIEW_PATH = '/a/www/ietf-ftp/conflict_reviews'
199199
AGENDA_PATH = '/a/www/www6s/proceedings/'
200200
AGENDA_PATH_PATTERN = '/a/www/www6s/proceedings/%(meeting)s/agenda/%(wg)s.%(ext)s'
201201
MINUTES_PATH_PATTERN = '/a/www/www6s/proceedings/%(meeting)s/minutes/%(wg)s.%(ext)s'

ietf/templates/idrfc/doc_tab_document.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@
6161
<span id="doc_conflict_review_button" class="yui-button yui-link-button" style="margin-left:2px;">{% url conflict_review_start name=doc.draft_name as start_review_url %}{% if start_review_url %}<span class="first-child"><a href="{{start_review_url}}">Begin IETF Conflict Review</a></span>{% endif %}</span>
6262
{% endif %}
6363
{% else %}
64-
{% if stream_info.stream.name == 'IETF'%}{%if doc.in_ietf_process %}
65-
{% comment %}
66-
<span id="doc_edit_info_button" class="yui-button yui-link-button" style="margin-left:2px;">{% url doc_edit_info name=doc.draft_name as doc_edit_url %}{% if doc_edit_url %}<span class="first-child"><a href="{{doc_edit_url}}">Edit</a></span>{% endif %}</span>
67-
{% endcomment %}
68-
{% else %}
64+
{% if stream_info.stream.name == 'IETF'%}{%if not doc.in_ietf_process %}
6965
<span id="doc_add_button" class="yui-button yui-link-button" style="margin-left:2px;">{% url doc_edit_info name=doc.draft_name as doc_edit_url %}{% if doc_edit_url %}<span class="first-child"><a href="{{doc_edit_url}}">Begin IESG Processing</a></span>{% endif %}</span>
7066
{% endif %}{% endif %}
7167
{% endif %}

0 commit comments

Comments
 (0)