Did I find the right examples for you? yes no

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

src/b/o/bodhi-HEAD/tools/pickledb.py   bodhi(Download)
    import transaction
    from bodhi.models import DBSession, Base
    from bodhi.models import Release, Update, Build, Comment, User, Bug, CVE
    from bodhi.models import Package, Group
    from bodhi.models import UpdateType, UpdateStatus, UpdateRequest
                build = db.query(Build).filter_by(nvr=nvr).one()
            except NoResultFound:
                build = Build(nvr=nvr, package=package)
                db.add(build)
                update.builds.append(build)

src/b/o/bodhi-HEAD/bodhi/tests/functional/base.py   bodhi(Download)
 
from bodhi import main
from bodhi.models import (
    Base,
    Bug,
        session.add(pkg)
        user.packages.append(pkg)
        build = Build(nvr=u'bodhi-2.0-1.fc17', release=release, package=pkg)
        session.add(build)
        testcase = TestCase(name=u'Wat')

src/b/o/bodhi-HEAD/bodhi/tests/models/test_models.py   bodhi(Download)
    def do_get_dependencies(self):
        release = model.Release(**TestRelease.attrs)
        return dict(
            builds=[model.Build(nvr=u'TurboGears-1.0.8-3.fc11',
                                  package=model.Package(**TestPackage.attrs),
                .filter_by(name=u'F11').one()
        attrs.update(dict(
            builds=[model.Build(nvr=name, package=pkg, release=rel)],
            release=rel,
            ))

src/b/o/bodhi-HEAD/bodhi/services/builds.py   bodhi(Download)
 
from bodhi import log
from bodhi.models import Update, Build, Bug, CVE, Package, User, Release, Group
import bodhi.schemas
import bodhi.security

src/b/o/bodhi-HEAD/bodhi/services/comments.py   bodhi(Download)
 
from bodhi import log
from bodhi.models import Comment, Build, Bug, CVE, Package, Update
import bodhi.schemas
import bodhi.security

src/b/o/bodhi-HEAD/bodhi/services/updates.py   bodhi(Download)
 
from bodhi import log
from bodhi.models import Update, Build, Bug, CVE, Package
import bodhi.schemas
import bodhi.security

src/b/o/bodhi-HEAD/bodhi/services/releases.py   bodhi(Download)
 
from bodhi import log
from bodhi.models import Update, Build, Package, Release
import bodhi.schemas
import bodhi.security

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_builds.py   bodhi(Download)
 
from bodhi import main
from bodhi.models import (
    Base,
    Bug,
    def test_list_builds_pagination(self):
 
        # First, stuff a second build in there
        session = DBSession()
        build = Build(nvr=u'bodhi-3.0-1.fc21')

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_comments.py   bodhi(Download)
from bodhi import main
from bodhi.config import config
from bodhi.models import (
    Base,
    Bug,

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_updates.py   bodhi(Download)
from bodhi import main
from bodhi.config import config
from bodhi.models import (
    Base,
    Bug,

  1 | 2  Next