-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
59 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
per-file-ignores = serval_app.py:F821,W605 | ||
exclude = | ||
serval_client_module.py |
Binary file not shown.
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "servalapp" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Your Name <[email protected]>"] | ||
authors = ["Eli Lowry <[email protected]>"] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import smtplib | ||
import ssl | ||
from email.message import EmailMessage | ||
import smtplib, ssl | ||
|
||
|
||
class ServalAppEmailServer: | ||
|
@@ -36,7 +37,8 @@ def send_build_completed_email( | |
msg.set_content( | ||
"""Hi! | ||
Your NMT engine has completed building. Attached are the translations of untranslated source text in the files you included. | ||
Your NMT engine has completed building. Attached are the \ | ||
translations of untranslated source text in the files you included. | ||
If you are experiencing difficulties using this application, please contact [email protected]. | ||
|
@@ -54,7 +56,8 @@ def send_build_faulted_email(self, recipient_address: str, error=""): | |
msg.set_content( | ||
f"""Hi! | ||
Your NMT engine has failed to build{" with the following error message: " + error if error != "" else ""}. Please make sure the information you specified is correct and try again after a while. | ||
Your NMT engine has failed to build{" with the following error message: " + error if error != "" else ""}. \ | ||
Please make sure the information you specified is correct and try again after a while. | ||
If you continue to experience difficulties using this application, please contact [email protected]. | ||
|