forked from AnneGilles/c3sMembership
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce configuration option for status email recipient
The previously existing configuation option c3smembership.mailaddr is renamed to c3smembership.notification_sender. The notification sender email address is used for sending emails like the email address confirmation link, the membership certificate and dues invoices. The status receiver email address option c3smembership.status_receiver is used as a recipient for status emails send by the membership application like the new application email which informs the staff that a new application was submitted.
- Loading branch information
Showing
27 changed files
with
146 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,7 +158,7 @@ def test_mail_signature_confirmation(self): | |
|
||
pyramid_request_mock = mock.Mock() | ||
pyramid_request_mock.registry.settings = { | ||
'c3smembership.mailaddr': '[email protected]'} | ||
'c3smembership.notification_sender': '[email protected]'} | ||
|
||
membership_application.mail_signature_confirmation( | ||
'member id', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,7 +154,7 @@ def setUp(self): | |
self.config.registry.settings['c3smembership.url'] = 'http://foo.com' | ||
self.config.registry.settings['ticketing.url'] = 'http://bar.com' | ||
self.config.registry.settings['testing.mail_to_console'] = 'false' | ||
self.config.registry.settings['c3smembership.mailaddr'] = \ | ||
self.config.registry.settings['c3smembership.notification_sender'] = \ | ||
'[email protected]' | ||
self.session = init_testing_db() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,10 @@ def setUp(self): | |
self.config.include('pyramid_mailer.testing') | ||
self.config.registry.settings[ | ||
'c3smembership.url'] = 'https://yes.c3s.cc' | ||
self.config.registry.settings['c3smembership.mailaddr'] = '[email protected]' | ||
self.config.registry.settings['c3smembership.notification_sender'] = \ | ||
'[email protected]' | ||
self.config.registry.settings['c3smembership.status_receiver'] = \ | ||
'[email protected]' | ||
self.config.registry.settings['testing.mail_to_console'] = 'false' | ||
self.config.registry.get_mailer = get_mailer | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ def setUp(self): | |
self.config = testing.setUp() | ||
self.config.include('pyramid_mailer.testing') | ||
self.config.registry.settings['c3smembership.url'] = 'http://foo.com' | ||
self.config.registry.settings['c3smembership.mailaddr'] = \ | ||
self.config.registry.settings['c3smembership.notification_sender'] = \ | ||
'[email protected]' | ||
self.config.registry.settings['testing.mail_to_console'] = 'false' | ||
self.config.registry.get_mailer = get_mailer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ def setUp(self): | |
self.config.include('pyramid_mailer.testing') | ||
self.config.include('c3smembership.presentation.pagination') | ||
self.config.registry.settings['testing.mail_to_console'] = 'false' | ||
self.config.registry.settings['c3smembership.mailaddr'] = \ | ||
self.config.registry.settings['c3smembership.notification_sender'] = \ | ||
'[email protected]' | ||
self.config.add_route('dashboard', '/') | ||
def dashboard_content_size_provider(filtering): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,8 @@ def setUp(self): | |
'sqlalchemy.url': 'sqlite:///:memory:', | ||
'api_auth_token': u"SECRETAUTHTOKEN", | ||
'c3smembership.url': u'localhost', | ||
'c3smembership.mailaddr': u'[email protected]', | ||
'c3smembership.notification_sender': u'[email protected]', | ||
'c3smembership.status_receiver': u'[email protected]', | ||
'testing.mail_to_console': u'false', | ||
} | ||
self.config = testing.setUp() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,7 +108,7 @@ def setUp(self): | |
DBSession.remove() | ||
self.session = _initTestingDB() | ||
self.config.registry.settings['testing.mail_to_console'] = 'no' | ||
self.config.registry.settings['c3smembership.mailaddr'] = \ | ||
self.config.registry.settings['c3smembership.notification_sender'] = \ | ||
'[email protected]' | ||
# set this to true to see mail bodies, but: | ||
# tests will fail: no mail in outbox | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,7 +183,7 @@ def setUp(self): | |
self.config.include('pyramid_mailer.testing') | ||
self.config.registry.settings[ | ||
'c3smembership.url'] = 'https://yes.c3s.cc' | ||
self.config.registry.settings['c3smembership.mailaddr'] = \ | ||
self.config.registry.settings['c3smembership.notification_sender'] = \ | ||
'[email protected]' | ||
self.config.registry.settings['testing.mail_to_console'] = 'false' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,7 +183,8 @@ def setUp(self): | |
self.config.include('pyramid_mailer.testing') | ||
self.config.registry.settings[ | ||
'c3smembership.url'] = 'https://yes.c3s.cc' | ||
self.config.registry.settings['c3smembership.mailaddr'] = '[email protected]' | ||
self.config.registry.settings['c3smembership.notification_sender'] = \ | ||
'[email protected]' | ||
self.config.registry.settings['testing.mail_to_console'] = 'false' | ||
|
||
DBSession.remove() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,7 +183,8 @@ def setUp(self): | |
self.config.include('pyramid_mailer.testing') | ||
self.config.registry.settings[ | ||
'c3smembership.url'] = 'https://yes.c3s.cc' | ||
self.config.registry.settings['c3smembership.mailaddr'] = '[email protected]' | ||
self.config.registry.settings['c3smembership.notification_sender'] = \ | ||
'[email protected]' | ||
self.config.registry.settings['testing.mail_to_console'] = 'false' | ||
|
||
DBSession.remove() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,7 +183,8 @@ def setUp(self): | |
self.config.include('pyramid_mailer.testing') | ||
self.config.registry.settings[ | ||
'c3smembership.url'] = 'https://yes.c3s.cc' | ||
self.config.registry.settings['c3smembership.mailaddr'] = '[email protected]' | ||
self.config.registry.settings['c3smembership.notification_sender'] = \ | ||
'[email protected]' | ||
self.config.registry.settings['testing.mail_to_console'] = 'false' | ||
|
||
DBSession.remove() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -616,7 +616,7 @@ def setUp(self): | |
# 'sqlalchemy.url': 'sqlite:///test_webtest_functional.db', | ||
'sqlalchemy.url': 'sqlite:///:memory:', | ||
'available_languages': 'da de en es fr', | ||
'c3smembership.mailaddr': '[email protected]', | ||
'c3smembership.notification_sender': '[email protected]', | ||
'testing.mail_to_console': 'false'} | ||
engine = engine_from_config(my_settings) | ||
DBSession.configure(bind=engine) | ||
|
Oops, something went wrong.