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

All Samples(12)  |  Call(7)  |  Derive(0)  |  Import(5)

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
from chisubmit.core import ChisubmitException, handle_unexpected_exception
 
    try:
        gh = GithubConnection(github_access_token, course.github_organization)
 
        gh.create_team_repository(course, team, fail_if_exists = not args.ignore_existing)
 
    try:    
        gh = GithubConnection(github_access_token, course.github_organization)
        gh.update_team_repository(team)    
    except ChisubmitException, ce:
 
    try:
        gh = GithubConnection(github_access_token, course.github_organization)
        gh.delete_team_repository(team)
    except ChisubmitException, ce:
 
    try:
        gh = GithubConnection(github_access_token, course.github_organization)
    except ChisubmitException, ce:
        print "Unable to connect to GitHub: %s" % ce.message

src/c/h/chisubmit-0.1.1/src/chisubmit/cli/submit.py   chisubmit(Download)
 
from chisubmit.common.utils import create_subparser, set_datetime_timezone_utc, convert_timezone_to_local
from chisubmit.core.repos import GithubConnection
from chisubmit.common import CHISUBMIT_SUCCESS, CHISUBMIT_FAIL
from chisubmit.core import ChisubmitException
 
    try:
        gh = GithubConnection(github_access_token, course.github_organization)
    except ChisubmitException, ce:
        print "Unable to connect to GitHub: %s" % ce.message

src/c/h/chisubmit-0.1.1/src/chisubmit/cli/course.py   chisubmit(Download)
from chisubmit.core import handle_unexpected_exception
from chisubmit.core.model import Course
from chisubmit.core.repos import GithubConnection
from chisubmit.common import CHISUBMIT_SUCCESS
from chisubmit.core import ChisubmitException
        # Try connecting to GitHub
        github_access_token = chisubmit.core.get_github_token()
        gh = GithubConnection(github_access_token, course.github_organization)
 
        # Create GitHub team to contain admins for this course

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
 
    try:
        github_access_token = chisubmit.core.get_github_token()
        gh = GithubConnection(github_access_token, course.github_organization)
        gh.create_team_repository(course, team, True)
    except ChisubmitException, ce:

src/c/h/chisubmit-0.1.1/src/chisubmit/cli/gh.py   chisubmit(Download)
 
from chisubmit.common.utils import create_subparser
from chisubmit.core.repos import GithubConnection
from chisubmit.common import CHISUBMIT_SUCCESS, CHISUBMIT_FAIL
from chisubmit.core import ChisubmitException, handle_unexpected_exception