Skip to content

Commit 742dbac

Browse files
committed
Move views and templatetags from idrfc/ to doc, the I-D specific views
go into views_draft.py and tests in tests_draft.py; what's left in idrfc is wrapper code, templates and the ballot_icon templatetag - Legacy-Id: 6051
1 parent 2cf79bb commit 742dbac

29 files changed

Lines changed: 590 additions & 635 deletions

ietf/bin/expire-ids

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ management.setup_environ(settings)
99

1010
syslog.openlog(os.path.basename(__file__), syslog.LOG_PID, syslog.LOG_USER)
1111

12-
from ietf.idrfc.expire import *
12+
from ietf.doc.expire import *
1313

1414
if not in_draft_expire_freeze():
1515
for doc in get_expired_drafts():

ietf/bin/expire-last-calls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ management.setup_environ(settings)
99

1010
syslog.openlog(os.path.basename(__file__), syslog.LOG_PID, syslog.LOG_USER)
1111

12-
from ietf.idrfc.lastcall import *
12+
from ietf.doc.lastcall import *
1313

1414
drafts = get_expired_last_calls()
1515
for doc in drafts:

ietf/bin/notify-expirations

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from ietf import settings
66
from django.core import management
77
management.setup_environ(settings)
88

9-
from ietf.idrfc.expire import get_soon_to_expire_drafts, send_expire_warning_for_draft
9+
from ietf.doc.expire import get_soon_to_expire_drafts, send_expire_warning_for_draft
1010

1111

1212
# notify about documents that expire within the next 2 weeks
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from ietf.doc.models import *
88
from ietf.person.models import Person
99
from ietf.doc.utils import log_state_changed
10-
from ietf.idrfc.mails import *
10+
from ietf.doc.mails import *
1111

1212
def request_last_call(request, doc):
1313
if not doc.latest_event(type="changed_ballot_writeup_text"):
File renamed without changes.

ietf/doc/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ def friendly_state(self):
340340
iesg_state = self.get_state("draft-iesg")
341341
iesg_state_summary = None
342342
if iesg_state:
343-
# This knowledge about which tags are reportable IESG substate tags is duplicated in idrfc
344343
iesg_substate = self.tags.filter(slug__in=IESG_SUBSTATE_TAGS)
345344
# There really shouldn't be more than one tag in iesg_substate, but this will do something sort-of-sensible if there is
346345
iesg_state_summary = iesg_state.name

ietf/doc/tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
from ietf.iesg.models import TelechatDate
1818

1919
# extra tests
20+
from ietf.doc.tests_draft import *
21+
from ietf.doc.tests_ballot import *
2022
from ietf.doc.tests_conflict_review import *
23+
from ietf.doc.tests_status_change import *
2124

2225

2326
class SearchTestCase(django.test.TestCase):

0 commit comments

Comments
 (0)