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

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

        def get_repo_id(uri, cursor, db):
    execute_statement(statement("SELECT id from repositories where uri = ?",
                                db.place_holder),
                                (uri,), cursor, db, "Couldn't get repo ID")

    result = cursor.fetchone()

    if result:
        return result[0]
    else:
        raise RepoNotFound

    return cursor.fetchone()[0]
        


src/m/i/MininGit-HEAD/pycvsanaly2/DBDeletionHandler.py   MininGit(Download)
#       Chris Lewis <cflewis@soe.ucsc.edu>
 
from Database import (execute_statement, get_repo_id, statement, RepoNotFound)
from utils import printdbg, printout, printerr
 
 
        try:
            self.repo_id = get_repo_id(self.uri, cursor, self.db)
        except RepoNotFound:
            # Repository not found, probably already backed out