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

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

src/f/l/flamejam-HEAD/flamejam/views/game.py   flamejam(Download)
        return redirect(r.team.game.url())
 
    enabled = (JamStatusCode.RUNNING <= jam.getStatus().code <= JamStatusCode.PACKAGING)
 
    form = GameCreateForm(request.form, obj = None)

src/f/l/flamejam-HEAD/flamejam/views/jams.py   flamejam(Download)
def jam_participate(jam_slug):
    jam = Jam.query.filter_by(slug = jam_slug).first_or_404()
    user = current_user
 
    if jam.getStatus().code > JamStatusCode.PACKAGING:
def jam_cancel_participation(jam_slug):
    jam = Jam.query.filter_by(slug = jam_slug).first_or_404()
 
    if jam.getStatus().code > JamStatusCode.PACKAGING:
        flash("You cannot unregister from a jam after it has finished or is in rating phase.", "error")

src/f/l/flamejam-HEAD/flamejam/views/team.py   flamejam(Download)
        return redirect(jam.url())
 
    if jam.getStatus().code > JamStatusCode.PACKAGING:
        flash("You cannot change the team after packaging is finished.", "error")
        return redirect(jam.url())