Refactor notifications.email into a module
Review Request #8829 — Created March 20, 2017 and submitted
email.py
was getting long and it is past due that it was split up.
This patch is in preparation for another change that will add more
e-mail-specific code.
Ran unit tests.
Description | From | Last Updated |
---|---|---|
These modules need to be listed in the codebase docs. |
chipx86 | |
'unregister_email_hook' imported but unused |
reviewbot | |
'register_email_hook' imported but unused |
reviewbot | |
undefined name 'logging' |
reviewbot | |
I think connect_signals should still live in the top-level email module. |
david | |
Blank line after this. |
david | |
File docstring? |
david | |
Blank line after this? |
david | |
Blank line after this? |
david | |
Blank line after this? |
david | |
There's 3 blank lines here. |
chipx86 | |
No blank line. |
chipx86 | |
We usually list this last in the file. This doesn't contain connect_signals. This is also most commonly a list (all … |
chipx86 | |
Two blank lines. |
chipx86 | |
"Extension hooks for augmenting e-mails" will be more useful in the codebase docs. |
chipx86 | |
Should be two blank lines. |
chipx86 | |
This loses the information we had in the original docstring. |
chipx86 | |
I guess we can skip this one, since it's purely internal callbacks. |
chipx86 | |
Too many blank lines. |
chipx86 | |
Inconsistent alignment. |
chipx86 | |
Kinda wonder if this should just live in callbacks.py. Maybe rename that to something like signal_handlers.py and have the base … |
chipx86 | |
tuple should be on its own line. |
chipx86 | |
tuple should be on its own line. |
chipx86 | |
list should be on its own line. |
chipx86 |
- Change Summary:
-
Reflow description
- Description:
-
~ email.py
was getting long and it is past due that it~ was split up. ~ email.py
was getting long and it is past due that it was split up.~ This patch is in preparation for another change that will add more + e-mail-specific code.
- Commit:
-
2adbe94cd68af145c690060b296188390dc087c7ef0d1721cb5b44898335b5c576d39ecbbe637989
- Diff:
-
Revision 2 (+425 -388)
-
Tool: Pyflakes Processed Files: reviewboard/notifications/tests.py reviewboard/notifications/email/callbacks.py reviewboard/notifications/email/__init__.py reviewboard/notifications/email/message.py reviewboard/accounts/forms/pages.py reviewboard/notifications/email/utils.py reviewboard/notifications/email/hooks.py reviewboard/notifications/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/notifications/tests.py reviewboard/notifications/email/callbacks.py reviewboard/notifications/email/__init__.py reviewboard/notifications/email/message.py reviewboard/accounts/forms/pages.py reviewboard/notifications/email/utils.py reviewboard/notifications/email/hooks.py reviewboard/notifications/__init__.py
- Change Summary:
-
Addressed David's comments.
- Commit:
-
ef0d1721cb5b44898335b5c576d39ecbbe63798972646df8b30cae6c7c869235cc49c8c73d91c604
- Diff:
-
Revision 3 (+450 -393)
Checks run (2 succeeded, 1 failed with error)
- Change Summary:
-
Addressed Christian's issues.
- Diff:
-
Revision 4 (+463 -394)
Checks run (2 succeeded, 1 failed with error)
- Diff:
-
Revision 5 (+464 -394)