Did I find the right examples for you? yes no

All Samples(8)  |  Call(3)  |  Derive(0)  |  Import(5)

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
                anonymous = '@' in author
 
            comment = Comment(timestamp=timestamp, text=text,
                              karma=karma, anonymous=anonymous)
            db.add(comment)

src/b/o/bodhi-HEAD/bodhi/tests/functional/base.py   bodhi(Download)
 
from bodhi import main
from bodhi.models import (
    Base,
    Bug,
        session.add(cve)
        update.cves.append(cve)
        comment = Comment(karma=1, text="wow. amaze.")
        session.add(comment)
        comment.user = user
        update.comments.append(comment)
        comment = Comment(karma=0, text="srsly.  pretty good.", anonymous=True)

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/user.py   bodhi(Download)
 
from bodhi import log
from bodhi.models import Update, Package, User, Comment, Group
import bodhi.services.updates
import bodhi.schemas

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,