From e76136ff3b5244e36eff91e86fe48fb626fde03f Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Thu, 5 Jul 2012 20:40:41 +0000 Subject: [PATCH] Fixed reverse urls in tests, removed a commented out block from a template, fixed a typo in a directory setting - Legacy-Id: 4599 --- ietf/idrfc/testsREDESIGN.py | 6 +++--- ietf/settings.py | 2 +- ietf/templates/idrfc/doc_tab_document.html | 6 +----- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/ietf/idrfc/testsREDESIGN.py b/ietf/idrfc/testsREDESIGN.py index cb4870412..734cd6bb7 100644 --- a/ietf/idrfc/testsREDESIGN.py +++ b/ietf/idrfc/testsREDESIGN.py @@ -411,7 +411,7 @@ class EditPositionTestCase(django.test.TestCase): def test_edit_position(self): draft = make_test_data() - url = urlreverse('doc_edit_position', kwargs=dict(name=draft.name, + url = urlreverse('ietf.idrfc.views_ballot.edit_position', kwargs=dict(name=draft.name, ballot_id=draft.latest_event(BallotDocEvent, type="created_ballot").pk)) login_testing_unauthorized(self, "ad", url) @@ -473,7 +473,7 @@ class EditPositionTestCase(django.test.TestCase): def test_edit_position_as_secretary(self): draft = make_test_data() - url = urlreverse('doc_edit_position', kwargs=dict(name=draft.name, + url = urlreverse('ietf.idrfc.views_ballot.edit_position', kwargs=dict(name=draft.name, ballot_id=draft.latest_event(BallotDocEvent, type="created_ballot").pk)) ad = Person.objects.get(name="Aread Irector") url += "?ad=%s" % ad.pk @@ -498,7 +498,7 @@ class EditPositionTestCase(django.test.TestCase): def test_cannot_edit_position_as_pre_ad(self): draft = make_test_data() - url = urlreverse('doc_edit_position', kwargs=dict(name=draft.name, + url = urlreverse('ietf.idrfc.views_ballot.edit_position', kwargs=dict(name=draft.name, ballot_id=draft.latest_event(BallotDocEvent, type="created_ballot").pk)) # transform to pre-ad diff --git a/ietf/settings.py b/ietf/settings.py index 9ff0ca16c..5ad2980d8 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -195,7 +195,7 @@ INTERNET_DRAFT_PDF_PATH = '/a/www/ietf-datatracker/pdf/' RFC_PATH = '/a/www/ietf-ftp/rfc/' CHARTER_PATH = '/a/www/ietf-ftp/charters/' CHARTER_TXT_URL = 'http://www.ietf.org/charter/' -CONFLICT_REVIEW_PATH = '/a/wwww/ietf-ftp/conflict_reviews' +CONFLICT_REVIEW_PATH = '/a/www/ietf-ftp/conflict_reviews' AGENDA_PATH = '/a/www/www6s/proceedings/' AGENDA_PATH_PATTERN = '/a/www/www6s/proceedings/%(meeting)s/agenda/%(wg)s.%(ext)s' MINUTES_PATH_PATTERN = '/a/www/www6s/proceedings/%(meeting)s/minutes/%(wg)s.%(ext)s' diff --git a/ietf/templates/idrfc/doc_tab_document.html b/ietf/templates/idrfc/doc_tab_document.html index 24b431e06..62256bb3a 100644 --- a/ietf/templates/idrfc/doc_tab_document.html +++ b/ietf/templates/idrfc/doc_tab_document.html @@ -61,11 +61,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. {% url conflict_review_start name=doc.draft_name as start_review_url %}{% if start_review_url %}Begin IETF Conflict Review{% endif %} {% endif %} {% else %} - {% if stream_info.stream.name == 'IETF'%}{%if doc.in_ietf_process %} - {% comment %} - {% url doc_edit_info name=doc.draft_name as doc_edit_url %}{% if doc_edit_url %}Edit{% endif %} - {% endcomment %} - {% else %} + {% if stream_info.stream.name == 'IETF'%}{%if not doc.in_ietf_process %} {% url doc_edit_info name=doc.draft_name as doc_edit_url %}{% if doc_edit_url %}Begin IESG Processing{% endif %} {% endif %}{% endif %} {% endif %}