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

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

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/media.py   mediadrop(Download)
 
        media.update_status()
        DBSession.add(media)
        DBSession.flush()
 
            media.slug = get_available_slug(Media, '_stub_' + timestamp)
            media.reviewed = True
            DBSession.add(media)
            DBSession.flush()
        else:
            media.title = os.path.basename(thumb.filename)
            media.slug = get_available_slug(Media, '_stub_' + media.title)
            DBSession.add(media)
            DBSession.flush()
        else:

src/m/e/mediadrop-HEAD/mediadrop/model/settings.py   mediadrop(Download)
        try:
            s = Setting(key, value)
            DBSession.add(s)
            transaction.commit()
            inserted.append(s)
            return ms
    ms = MultiSetting(key, value)
    DBSession.add(ms)
    return ms
 

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/podcasts.py   mediadrop(Download)
 
        if id == 'new':
            DBSession.add(podcast)
            DBSession.flush()
            create_default_thumbs_for(podcast)

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/categories.py   mediadrop(Download)
                cat.parent = None
 
            DBSession.add(cat)
            DBSession.flush()
 

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/users.py   mediadrop(Download)
            user.groups = []
 
        DBSession.add(user)
 
        # Check if we're changing the logged in user's own password

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/tags.py   mediadrop(Download)
            tag.name = kwargs['name']
            tag.slug = get_available_slug(Tag, kwargs['slug'], tag)
            DBSession.add(tag)
            DBSession.flush()
            data = dict(

src/m/e/mediadrop-HEAD/mediadrop/model/auth.py   mediadrop(Download)
            setattr(user, key, value)
 
        DBSession.add(user)
        DBSession.flush()
        return user
        defaults.update(kwargs)
        group = Group(**defaults)
        DBSession.add(group)
        DBSession.flush()
        return group
        defaults.update(kwargs)
        permission = Permission(**defaults)
        DBSession.add(permission)
        DBSession.flush()
        return permission

src/m/e/mediadrop-HEAD/mediadrop/model/media.py   mediadrop(Download)
            assert hasattr(media, key)
            setattr(media, key, value)
        DBSession.add(media)
        DBSession.flush()
        return media

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/comments.py   mediadrop(Download)
            comment.reviewed = True
            comment.publishable = publishable
            DBSession.add(comment)
 
        DBSession.flush()
        comment = fetch_row(Comment, id)
        comment.body = body
        DBSession.add(comment)
        return dict(
            success = True,

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/groups.py   mediadrop(Download)
        else:
            group.permissions = []
        DBSession.add(group)
 
        redirect(action='index', id=None)

  1 | 2  Next