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

All Samples(12)  |  Call(2)  |  Derive(0)  |  Import(10)

src/m/e/mediadrop-HEAD/mediadrop/websetup.py   mediadrop(Download)
from mediadrop.plugin import events
 
from mediadrop.model import (Author, AuthorWithIP, Category, Comment,
    DBSession, Group, Media, MediaFile, Permission, Podcast, Setting,
    User, metadata, cleanup_players_table)
 
 
    category = Category(name=u'Featured', slug=u'featured')
    DBSession.add(category)
 
    category2 = Category(name=u'Instructional', slug=u'instructional')

src/m/e/mediadrop-HEAD/mediadrop/model/tests/category_example_test.py   mediadrop(Download)
from mediadrop.lib.test.db_testcase import DBTestCase
from mediadrop.lib.test.pythonic_testcase import *
from mediadrop.model import Category
 
 

src/m/e/mediadrop-HEAD/mediadrop/controllers/media.py   mediadrop(Download)
from mediadrop.lib.services import Facebook
from mediadrop.lib.templating import render
from mediadrop.model import (DBSession, fetch_row, Media, MediaFile, Comment, 
    Tag, Category, AuthorWithIP, Podcast)
from mediadrop.plugin import events

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/media.py   mediadrop(Download)
from mediadrop.lib.templating import render
from mediadrop.lib.thumbnails import thumb_path, thumb_paths, create_thumbs_for, create_default_thumbs_for, has_thumbs, has_default_thumbs, delete_thumbs
from mediadrop.model import (Author, Category, Media, Podcast, Tag, fetch_row,
    get_available_slug, slugify)
from mediadrop.model.meta import DBSession

src/m/e/mediadrop-HEAD/mediadrop/controllers/api/media.py   mediadrop(Download)
from mediadrop.lib.helpers import get_featured_category, url_for, url_for_media
from mediadrop.lib.thumbnails import thumb
from mediadrop.model import Category, Media, Podcast, Tag, fetch_row, get_available_slug
from mediadrop.model.meta import DBSession
from mediadrop.plugin import events

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/categories.py   mediadrop(Download)
    validate)
from mediadrop.lib.helpers import redirect, url_for
from mediadrop.model import Category, fetch_row, get_available_slug
from mediadrop.model.meta import DBSession
from mediadrop.plugin import events

src/m/e/mediadrop-HEAD/mediadrop/forms/admin/media.py   mediadrop(Download)
from mediadrop.forms import FileField, Form, ListForm, SubmitButton, TextArea, TextField, XHTMLTextArea, email_validator
from mediadrop.forms.admin.categories import CategoryCheckBoxList
from mediadrop.model import Category, DBSession, Podcast
from mediadrop.plugin import events
from mediadrop.validation import URIValidator

src/m/e/mediadrop-HEAD/mediadrop/controllers/categories.py   mediadrop(Download)
from mediadrop.lib.helpers import content_type_for_response, url_for, viewable_media
from mediadrop.lib.i18n import _
from mediadrop.model import Category, Media, fetch_row
from mediadrop.plugin import events
from mediadrop.validation import LimitFeedItemsValidator

src/m/e/mediadrop-HEAD/mediadrop/lib/helpers.py   mediadrop(Download)
def get_featured_category():
    from mediadrop.model import Category
    feat_id = request.settings['featured_category']
    if not feat_id:
        return None

src/m/e/mediadrop-HEAD/mediadrop/controllers/api/categories.py   mediadrop(Download)
from mediadrop.lib.helpers import get_featured_category, url_for
from mediadrop.lib.thumbnails import thumb
from mediadrop.model import Category
from mediadrop.model.meta import DBSession