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

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

src/m/e/mediadrop-HEAD/mediadrop/lib/email.py   mediadrop(Download)
from pylons import config, request
 
from mediadrop.lib.helpers import (line_break_xhtml, strip_xhtml, url_for, 
    url_for_media)
from mediadrop.lib.i18n import _
    author_name = media_obj.author.name
    comment_subject = comment.subject
    post_url = url_for_media(media_obj, qualified=True)
    comment_body = strip_xhtml(line_break_xhtml(line_break_xhtml(comment.body)))
    subject = _('New Comment: %(comment_subject)s') % locals()

src/m/e/mediadrop-HEAD/mediadrop/controllers/api/media.py   mediadrop(Download)
from mediadrop.lib.base import BaseController
from mediadrop.lib.decorators import expose, expose_xhr, observable, paginate, validate
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
                                podcast_slug=media.podcast.slug, qualified=True)
        else:
            media_url = url_for_media(media, qualified=True)
 
        if media.podcast_id is None:
            display_name = file.display_name,
            created = file.created_on.isoformat(),
            url = url_for_media(media, qualified=True),
            uris = uris,
        )