Did I find the right examples for you? yes no

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

src/b/o/bodhi-HEAD/bodhi/models/models.py   bodhi(Download)
    def get_latest(self):
        koji_session = buildsys.get_session()
 
        # Grab a list of builds tagged with ``Release.stable_tag`` release
        # tags, and find the most recent update for this package, other than
    def get_tags(self):
        koji = buildsys.get_session()
        return [tag['name'] for tag in koji.listTags(self.nvr)]
 
    def untag(self, koji):
    def add_tag(self, tag):
        """ Add a koji tag to all builds in this update """
        log.debug('Adding tag %s to %s' % (tag, self.title))
        koji = buildsys.get_session()
        koji.multicall = True
        return_multicall = not koji
        if not koji:
            koji = buildsys.get_session()
            koji.multicall = True
        for build in self.builds:
    def unpush(self):
        """ Move this update back to its dist-fX-updates-candidate tag """
        log.debug("Unpushing %s" % self.title)
        koji = buildsys.get_session()
        newtag = '%s-updates-candidate' % self.release.dist_tag

src/b/o/bodhi-HEAD/bodhi/views/search.py   bodhi(Download)
def get_all_packages():
    """ Get a list of all packages in Koji """
    log.debug('Fetching list of all packages...')
    koji = buildsys.get_session()
    return [pkg['package_name'] for pkg in koji.listPackages()]

src/b/o/bodhi-HEAD/bodhi/tests/models/test_models.py   bodhi(Download)
        req = DummyRequest()
        req.errors = cornice.Errors()
        req.koji = buildsys.get_session()
        eq_(self.obj.status, UpdateStatus.pending)
        self.obj.set_request(UpdateRequest.stable, req)
    def test_set_request_stable_after_week_in_testing(self):
        req = DummyRequest()
        req.errors = cornice.Errors()
        req.koji = buildsys.get_session()
        req.user = model.User(name='bob')