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

All Samples(14)  |  Call(6)  |  Derive(0)  |  Import(8)

src/f/l/flamejam-HEAD/scripts/seed-db.py   flamejam(Download)
 
from flamejam import db
from flamejam.models import User, Jam, Game, Rating, Comment, GameScreenshot
from datetime import datetime, timedelta
 
 
# Make games
best_game = Game(paddy.getTeam(rgj3), "Bessy the Best Game")
best_game.description = "Simply the best game"
 
space_game = Game(aTeam, "CloneStars - The war wars")
space_game.description = "A space shooter game."
 
lolgame = Game(pablo.getTeam(loljam), "Lolol")
lolgame.description = "Lol."
 
clone = Game(peter.getTeam(rgj3), "Shooterz")
clone.description = "I got this idea while taking a dump."
 

src/f/l/flamejam-HEAD/flamejam/views/game.py   flamejam(Download)
from flamejam import app, db, mail
from flamejam.utils import get_slug
from flamejam.models import Jam, Game, User, Comment, GamePackage, \
    GameScreenshot, JamStatusCode, Rating
from flamejam.models.rating import RATING_CATEGORIES
    form = GameCreateForm(request.form, obj = None)
    if enabled and form.validate_on_submit():
        game = Game(r.team, form.title.data)
        db.session.add(game)
        db.session.commit()

src/f/l/flamejam-HEAD/scripts/init-db.py   flamejam(Download)
 
from flamejam import db
from flamejam.models import User, Jam, Game, Rating, Comment, GameScreenshot
from datetime import datetime, timedelta
 

src/f/l/flamejam-HEAD/flamejam/views/misc.py   flamejam(Download)
 
from flamejam import app, db, mail, cache
from flamejam.models import Jam, User, Team, Game, JamStatusCode
from flamejam.utils import get_current_jam
from flask import render_template, request, url_for, redirect, flash, jsonify

src/f/l/flamejam-HEAD/flamejam/models/user.py   flamejam(Download)
# -*- coding: utf-8 -*-
 
from flamejam import app, db, login_manager
from flamejam.utils import hash_password, verify_password, findLocation
from flamejam.models import Participation, Team, Game

src/f/l/flamejam-HEAD/flamejam/views/admin.py   flamejam(Download)
from flamejam import app, db, admin_permission, mail
from flamejam.utils import get_slug
from flamejam.models import User, Jam, Game
from flamejam.forms import JamDetailsForm, AdminWriteAnnouncement, AdminUserForm
from flask import render_template, redirect, url_for, request, flash

src/f/l/flamejam-HEAD/flamejam/models/jam.py   flamejam(Download)
from flamejam.utils import get_slug
from flamejam.filters import formattime, humandelta
from flamejam.models import Game, GamePackage
from datetime import datetime, timedelta
from flask import url_for, Markup, render_template

src/f/l/flamejam-HEAD/flamejam/models/team.py   flamejam(Download)
# -*- coding: utf-8 -*-
 
from flamejam import app, db, mail
from flamejam.models import Invitation, Game
from flask import url_for, render_template