Skip to content

Commit e34cbcc

Browse files
committed
Merged in [9608] from rjsparks@nostrum.com:
Show leadership when and where mail was sent at the time it is sent. - Legacy-Id: 9612 Note: SVN reference [9608] has been migrated to Git commit 85cfe0e
2 parents 869363e + 85cfe0e commit e34cbcc

4 files changed

Lines changed: 72 additions & 2 deletions

File tree

changelog

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
ietfdb (6.0.3) ietf; urgency=medium
2+
3+
This this release provides the capaability to manage and graphically
4+
schedule additional meeting types, including leadership meetings. It
5+
also fixes a number of issues, mostly related to the recent facelift.
6+
7+
Details:
8+
9+
* Merged in [9604] from rcross@amsl.com:
10+
Update IAOC email in Announcement app.
11+
12+
* Merged in [9603] from rjsparks@nostrum.com:
13+
14+
- Added functionality which allows the secretariat to manage more meeting
15+
types, including leadership meetings.
16+
- Backfilled those types of meetings from IETF91 and IETF92.
17+
- Addressed several facelift issues in the meeting application.
18+
19+
* Merged in [9595] from rcross@amsl.com:
20+
Fixed an issue where an authorized individual was unable to add an
21+
incoming liaison. Fixed a problem with the incoming liaison form
22+
requiring a deadline date for information only statements.
23+
24+
* Fixed an issue where the https: schema inadvertently had been included in
25+
RFCDIFF_PREFIX, causing duplicate schema specifications in some places.
26+
Changed name to RFCDIFF_BASE_URL and cleaned out the duplicate schema
27+
specifiers.
28+
29+
* Added a check for model changes which haven't been captured in migrations
30+
to the release script.
31+
32+
* Added 5 migrations for changes in model field help-text strings which
33+
changed in the facelift. Also fixed the expression of the help text for
34+
NomCom.reminder_interval so the text itself doesn't contain quite as much
35+
whitespace.
36+
37+
* Aligned the table header fields with the table columns in the doc history
38+
page. Marked the action text safe so as to make embedded links show up as
39+
links.
40+
41+
* Reduce the max height of submenus to avoid them extending below the screen
42+
bottom edge when used from the top navbar (which won't scroll). The new
43+
value works on 1024x768 screens for the current areas.
44+
45+
-- Henrik Levkowetz <henrik@levkowetz.com> 06 May 2015 11:23:56 -0700
46+
47+
148
ietfdb (6.0.2) ietf; urgency=medium
249

350
This is a minor release, containing a few new development support features,

ietf/iesg/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@ def test_reschedule(self):
435435
r = self.client.get(url)
436436
self.assertEqual(r.status_code, 200)
437437
d_header_pos = r.content.find("IESG telechat %s" % d.isoformat())
438-
draft_pos = r.content.find(draft.name)
439-
self.assertTrue(d_header_pos < draft_pos)
438+
draft_pos = r.content[d_header_pos:].find(draft.name)
439+
self.assertTrue(draft_pos>0)
440440

441441
self.assertTrue(draft.latest_event(TelechatDocEvent, "scheduled_for_telechat"))
442442
self.assertEqual(draft.latest_event(TelechatDocEvent, "scheduled_for_telechat").telechat_date, d)

ietf/utils/mail.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import copy
2222
import textwrap
2323
import traceback
24+
import datetime
2425

2526
# Testing mode:
2627
# import ietf.utils.mail
@@ -228,6 +229,19 @@ def condition_message(to, frm, subject, msg, cc, extra):
228229
if v:
229230
msg[k] = v
230231

232+
def show_that_mail_was_sent(request,leadline,msg,bcc):
233+
if request and request.user:
234+
from ietf.ietfauth.utils import has_role
235+
if has_role(request.user,['Area Director','Secretariat','IANA','RFC Editor','ISE','IAD','IRTF Chair','WG Chair','RG Chair','WG Secretary','RG Secretary']):
236+
info = "%s at %s %s\n" % (leadline,datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"),settings.TIME_ZONE)
237+
info += "Subject: %s\n" % msg.get('Subject','[no subject]')
238+
info += "To: %s\n" % msg.get('To','[no to]')
239+
if msg.get('Cc'):
240+
info += "Cc: %s\n" % msg.get('Cc')
241+
if bcc:
242+
info += "Bcc: %s\n" % bcc
243+
messages.info(request,info,extra_tags='preformatted',fail_silently=True)
244+
231245
def send_mail_mime(request, to, frm, subject, msg, cc=None, extra=None, toUser=False, bcc=None):
232246
"""Send MIME message with content already filled in."""
233247

@@ -238,13 +252,18 @@ def send_mail_mime(request, to, frm, subject, msg, cc=None, extra=None, toUser=F
238252
# and EMAIL_PORT=2025 in settings_local.py
239253
debugging = getattr(settings, "USING_DEBUG_EMAIL_SERVER", False) and settings.EMAIL_HOST == 'localhost' and settings.EMAIL_PORT == 2025
240254

255+
if settings.SERVER_MODE == 'development':
256+
show_that_mail_was_sent(request,'In production, email would have been sent',msg,bcc)
257+
241258
if test_mode or debugging or settings.SERVER_MODE == 'production':
242259
try:
243260
send_smtp(msg,bcc)
244261
except smtplib.SMTPException as e:
245262
log_smtp_exception(e)
246263
build_warning_message(request, e)
247264
send_error_email(e)
265+
266+
show_that_mail_was_sent(request,'Email was sent',msg,bcc)
248267

249268
elif settings.SERVER_MODE == 'test':
250269
if toUser:

static/css/ietf.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ pre {
180180
font-size: 14px;
181181
}
182182

183+
.preformatted {
184+
white-space: pre;
185+
}
186+
183187
/* Make ampersands pretty */
184188
/* This sets ampersand in a different font than the rest of the text. Fancy, but it's
185189
really better to select a pretty font in the first place. Additionally, _which_ 'pretty'

0 commit comments

Comments
 (0)