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

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

src/c/h/chisubmit-0.1.1/scripts/create_groups.py   chisubmit(Download)
 
import chisubmit.core
from chisubmit.core.model import Course, Team, Student
from chisubmit.core.repos import GithubConnection
from chisubmit.core import ChisubmitException
        print "Added student %s %s (%s)." % (student2.first_name, student2.last_name, student2.id)
 
    team = Team(team_id = group[GROUPNAME])
    course.add_team(team)
    team.add_student(student1)     

src/c/h/chisubmit-0.1.1/src/chisubmit/cli/team.py   chisubmit(Download)
 
from chisubmit.common.utils import create_subparser
from chisubmit.core.model import Team
from chisubmit.core.repos import GithubConnection
from chisubmit.common import CHISUBMIT_SUCCESS, CHISUBMIT_FAIL
def cli_do__team_create(course, args):
    team = Team(team_id = args.team_id)
    course.add_team(team)
 
    return CHISUBMIT_SUCCESS