Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/f/l/flamejam-HEAD/flamejam/views/admin.py   flamejam(Download)
def admin_announcement():
    form = AdminWriteAnnouncement()
 
    if form.validate_on_submit():
        with mail.connect() as conn:

src/f/l/flamejam-HEAD/flamejam/models/jam.py   flamejam(Download)
        subject = app.config["LONG_NAME"] + ": " + subject
 
        with mail.connect() as conn:
            for user in users:
                if getattr(user, "notify_" + notify):