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
[options] | |
addons_path = /mnt/extra-addons | |
db_name = odoo15 | |
admin_email = admin | |
admin_passwd = admin | |
dev = all | |
log_level = debug |
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
import base64 | |
import email.policy | |
from email.mime.text import MIMEText | |
def create_message(sender, to, subject, message_text): | |
""" | |
Create an email message. | |
:param sender: Sender's email (can use format '{name} <{email}>' to show custom sender name) |
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
import asyncio | |
import threading | |
import time | |
from collections import deque | |
from datetime import datetime | |
from functools import wraps | |
from inspect import iscoroutinefunction | |
from typing import cast |