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

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

src/f/l/flamejam-HEAD/flamejam/views/jams.py   flamejam(Download)
        user.joinJam(jam)
        user.getParticipation(jam).show_in_finder = form.show_in_finder.data
        db.session.commit()
        flash("You are now registered for this jam.", "success")
        return redirect(jam.url())
    if form.validate_on_submit():
        current_user.leaveJam(jam)
        db.session.commit()
        flash("You are now unregistered from this jam.", "success")
        return redirect(jam.url())
    if not r: abort(404)
    r.show_in_finder = not r.show_in_finder
    db.session.commit()
    flash("You are now %s in the team finder for the jam \"%s\"." % ("shown" if r.show_in_finder else "hidden", jam.title), "success")
    return redirect(jam.url())

src/f/l/flamejam-HEAD/flamejam/models/jam.py   flamejam(Download)
        # next tick will come around.
        self.last_notification_sent = n
        db.session.commit()
 
        subject = app.config["LONG_NAME"] + ": " + subject

Previous  1 | 2