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

All Samples(9)  |  Call(0)  |  Derive(7)  |  Import(2)

src/r/e/repoman-HEAD/repoman/buildbot.py   repoman(Download)
 
from config import conf
from common import RequestHandler
 
class GitRepository(object):
class PackageHandler(RequestHandler):
    def get(self, gitpath, gitrepo):
        gitpath = os.path.join(conf('buildbot.gitpath.%s' % gitpath), gitrepo)
 
        repo = GitRepository()
class RepoListHandler(RequestHandler):
    def get(self, gitpath):
        try:
            gitindex = conf('buildbot.gitindex.%s' % gitpath)
        except KeyError:
class TarballHandler(RequestHandler):
    def get(self, buildid):
        builddir = os.path.join(conf('buildbot.buildpath'), buildid)
        if not os.path.exists(builddir):
            return Response(status=404, body='The build ID does not exist.\n')
class StatusHandler(RequestHandler):
    def get(self, buildid):
        builddir = os.path.join(conf('buildbot.buildpath'), buildid)
        if not os.path.exists(builddir):
            return Response(status=404, body='The build ID does not exist.\n')

src/r/e/repoman-HEAD/repoman/repository.py   repoman(Download)
from simplejson import dumps, loads
from gnupg import GPG
from webob import Response
from common import RequestHandler
 
class RepoHandler(RequestHandler):
    def get(self):
        repo = Repository(conf('repository.path'))
        return Response(body=dumps(repo.get_dists()))
 
class DistHandler(RequestHandler):
    def get(self, dist=None, action=None):
        repo = Repository(conf('repository.path'))
        return Response(body=dumps(repo.get_packages(dist).keys()))
 
class PackageHandler(RequestHandler):
    def get(self, dist, package):
        repo = Repository(conf('repository.path'))
 
        if dist and package: