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

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

src/d/j/django-mediagenerator-kensho-1.02/mediagenerator/filters/cssurl.py   django-mediagenerator-kensho(Download)
from base64 import b64encode
from django.conf import settings
from mediagenerator.generators.bundles.base import Filter, FileFilter
from mediagenerator.utils import media_url, prepare_patterns, find_file
from mimetypes import guess_type
                        mime = guess_type(path)[0] or 'application/octet-stream'
                        return 'url(data:%s;base64,%s)' % (mime, data)
                url = media_url(rebased_url)
            except:
                logging.error('URL not found: %s' % url)

src/d/j/django-mediagenerator-1.11/mediagenerator/filters/cssurl.py   django-mediagenerator(Download)
from base64 import b64encode
from django.conf import settings
from mediagenerator.generators.bundles.base import Filter, FileFilter
from mediagenerator.utils import media_url, prepare_patterns, find_file
from mimetypes import guess_type
                        mime = guess_type(path)[0] or 'application/octet-stream'
                        return 'url(data:%s;base64,%s)' % (mime, data)
                url = media_url(rebased_url)
            except:
                logging.error('URL not found: %s' % url)

src/d/j/django-mediagenerator-HEAD/mediagenerator/filters/cssurl.py   django-mediagenerator(Download)
from base64 import b64encode
from django.conf import settings
from mediagenerator.generators.bundles.base import Filter, FileFilter
from mediagenerator.utils import media_url, prepare_patterns, find_file
from mimetypes import guess_type
                        mime = guess_type(path)[0] or 'application/octet-stream'
                        return 'url(data:%s;base64,%s)' % (mime, data)
                url = media_url(rebased_url)
            except:
                logging.error('URL not found: %s' % url)

src/d/j/django-mediagenerator-kensho-1.02/mediagenerator/templatetags/media.py   django-mediagenerator-kensho(Download)
def media_url(url):
    return utils.media_url(url)
 
@register.filter
def media_urls(url):

src/d/j/django-mediagenerator-1.11/mediagenerator/templatetags/media.py   django-mediagenerator(Download)
def media_url(url):
    return utils.media_url(url)
 
@register.filter
def media_urls(url):

src/d/j/django-mediagenerator-HEAD/mediagenerator/templatetags/media.py   django-mediagenerator(Download)
def media_url(url):
    return utils.media_url(url)
 
@register.filter
def media_urls(url):

src/v/i/villagescc-HEAD/cc/profile/templatetags/profile.py   villagescc(Download)
from django import template
 
from mediagenerator.utils import media_url
 
from cc.general.templatetags.image import resize
    else:
        square_side = min((int(i) for i in size.split('x')))
        return media_url('img/generic_user_%dx%d.png' % (
                square_side, square_side))
 

src/p/l/plupload-s3mixin-HEAD/plupload-s3mixin/widgets.py   plupload-s3mixin(Download)
from django import forms
from django.utils.safestring import mark_safe
from mediagenerator.utils import media_url
from s3mixin.models import SUPPORTED_FORMATS
 
                    'signature_url': self.signature_url,
                   # swf: '%ss3_upload.swf',
                    'swf_url': media_url('plupload/plupload.flash.swf'),
                   # $('#%s').val('');
                    'id': self.attrs['id'],

src/p/l/plupload-s3mixin-HEAD/plupload-s3mixin/models.py   plupload-s3mixin(Download)
from django.conf import settings
 
from mediagenerator.utils import media_url
from djangotoolbox.http import JSONResponse
 
    def mime_icon(self):
        return media_url('images/txt.png')
 
    def extension(self):
        try:

src/a/l/allbuttonspressed-HEAD/simplesocial/api.py   allbuttonspressed(Download)
from django.conf import settings
from django.utils.html import escape
from django.utils.http import urlquote
from mediagenerator.utils import media_url
 
        url = escape(button['url'] % data)
        icon = escape(button.get('icon',
                                 media_url('simplesocial/icons32/%s.png'
                                           % name.lower())))
        if not icon.startswith(('http://', 'https://')):

  1 | 2  Next