Skip to content

Commit 50bb971

Browse files
committed
Merged in [17496] from rjsparks@nostrum.com:
Remove the rest of the log.assertions checking that iesg_state existed in places we expected it to. Removed unnecessary imports. - Legacy-Id: 17522 Note: SVN reference [17496] has been migrated to Git commit db5d11e
2 parents ec6f0ae + db5d11e commit 50bb971

4 files changed

Lines changed: 1 addition & 7 deletions

File tree

ietf/doc/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ def friendly_state(self):
333333
else:
334334
return "Replaced"
335335
elif state.slug == "active":
336-
log.assertion('iesg_state')
337336
if iesg_state:
338337
if iesg_state.slug == "dead":
339338
# Many drafts in the draft-iesg "Dead" state are not dead

ietf/doc/templatetags/ballot_icon.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
from ietf.ietfauth.utils import user_is_person, has_role
4444
from ietf.doc.models import BallotPositionDocEvent, IESG_BALLOT_ACTIVE_STATES
4545
from ietf.name.models import BallotPositionName
46-
from ietf.utils import log
4746

4847

4948
register = template.Library()
@@ -168,7 +167,6 @@ def state_age_colored(doc):
168167
# Don't show anything for expired/withdrawn/replaced drafts
169168
return ""
170169
iesg_state = doc.get_state_slug('draft-iesg')
171-
log.assertion('iesg_state')
172170
if not iesg_state:
173171
return ""
174172

ietf/doc/views_doc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
from ietf.review.models import ReviewAssignment
7979
from ietf.review.utils import can_request_review_of_doc, review_assignments_to_list_for_docs
8080
from ietf.review.utils import no_review_from_teams_on_doc
81-
from ietf.utils import markup_txt, log
81+
from ietf.utils import markup_txt
8282
from ietf.utils.text import maybe_split
8383

8484

@@ -405,7 +405,6 @@ def document_main(request, name, rev=None):
405405
actions.append((label, urlreverse('ietf.doc.views_draft.request_publication', kwargs=dict(name=doc.name))))
406406

407407
if doc.get_state_slug() not in ["rfc", "expired"] and doc.stream_id in ("ietf",) and not snapshot:
408-
log.assertion('iesg_state')
409408
if iesg_state.slug == 'idexists' and can_edit:
410409
actions.append(("Begin IESG Processing", urlreverse('ietf.doc.views_draft.edit_info', kwargs=dict(name=doc.name)) + "?new=1"))
411410
elif can_edit_stream_info and (iesg_state.slug in ('idexists','watching')):

ietf/idindex/index.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from ietf.doc.templatetags.ietf_filters import clean_whitespace
2424
from ietf.group.models import Group
2525
from ietf.person.models import Person, Email
26-
from ietf.utils import log
2726

2827
def all_id_txt():
2928
# this returns a lot of data so try to be efficient
@@ -157,7 +156,6 @@ def all_id2_txt():
157156
# 3
158157
if state == "active":
159158
s = "I-D Exists"
160-
log.assertion('iesg_state')
161159
if iesg_state:
162160
s = iesg_state.name
163161
tags = d.tags.filter(slug__in=IESG_SUBSTATE_TAGS).values_list("name", flat=True)

0 commit comments

Comments
 (0)