Did I find the right examples for you? yes no

All Samples(19)  |  Call(8)  |  Derive(0)  |  Import(11)

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
                db.query(Release).filter_by(name=release['name']).one()
            except NoResultFound:
                r = Release(**release)
                db.add(r)
        data = data['updates']
                release = db.query(Release).filter_by(name=u['release'][0]).one()
            except NoResultFound:
                release = Release(name=u['release'][0], long_name=u['release'][1],
                                  id_prefix=u['release'][2],
                                  dist_tag=u['release'][3])

src/b/o/bodhi-HEAD/bodhi/tests/functional/base.py   bodhi(Download)
 
from bodhi import main
from bodhi.models import (
    Base,
    Bug,
        user.groups.append(packager)
        release = Release(
            name=u'F17', long_name=u'Fedora 17',
            id_prefix=u'FEDORA', dist_tag=u'f17', version='17')
        session.add(release)

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_releases.py   bodhi(Download)
 
from bodhi import main
from bodhi.models import (
    Base,
    Bug,
        session = DBSession()
        release = Release(
            name=u'F22', long_name=u'Fedora 22',
            id_prefix=u'FEDORA', dist_tag=u'f22', version='22')
        session.add(release)

src/b/o/bodhi-HEAD/bodhi/tests/models/test_models.py   bodhi(Download)
    def do_get_dependencies(self):
        return dict(
                release=model.Release(**TestRelease.attrs),
                package=model.Package(**TestPackage.attrs),
                )
    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),
        ## duplicate IDs across Fedora 10/11 updates.
        update = self.get_update(name=u'nethack-3.4.5-1.fc10')
        otherrel = model.Release(name=u'fc10', long_name=u'Fedora 10',
                                 id_prefix=u'FEDORA', dist_tag=u'dist-fc10')
        update.release = otherrel
 
        update = self.get_update(name=u'TurboGears-2.1-1.el5')
        release = model.Release(name=u'EL-5', long_name=u'Fedora EPEL 5',
                          dist_tag=u'dist-5E-epel', id_prefix=u'FEDORA-EPEL')
        update.release = release

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/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/alembic/versions/1eb754722e44_default_update_critp.py   bodhi(Download)
import transaction
 
from bodhi.models import Base, DBSession, Release, Update
from bodhi.util import get_critpath_pkgs
 

src/b/o/bodhi-HEAD/tools/metrics.py   bodhi(Download)
 
from bodhi.util import get_db_from_config, header, get_critpath_pkgs
from bodhi.models import Update, Release, UpdateStatus, UpdateType
 
statuses = ('stable', 'testing', 'pending', 'obsolete')

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