Did I find the right examples for you? yes no

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/m/y/myewb2-HEAD/myewb/apps/confcomm/api.py   myewb2(Download)
from django.utils import simplejson
from django.utils.html import urlquote
from django.core.serializers.json import DateTimeAwareJSONEncoder
from django.conf import settings
from django.http import HttpResponseRedirect
        some kind of challenge headers and 401 code on it.
        """
        path = urlquote(self.request.get_full_path())
        tup = (self.login_url, self.redirect_field_name, path)
        return HttpResponseRedirect('%s?%s=%s' %tup)

src/d/j/django_social-HEAD/sorl/thumbnail/fields.py   django_social(Download)
import os.path
 
from django.db.models.fields import ImageField
from django.utils.html import urlquote
from django.utils.safestring import mark_safe
def _get_thumbnail_tag(model_instance, field, attrs):
    thumb = _get_thumbnail(model_instance, field, attrs)
    url = urlquote(unicode(thumb))
    tag = '<img src="%s" width="%s" height="%s" alt="" />' % (
        url, thumb.width(), thumb.height())

src/c/e/CeleryManagement-HEAD/celerymanagementapp/dataviews.py   CeleryManagement(Download)
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils.html import urlquote
 
from celery import signals
                                    context_instance=RequestContext(request))
                success = { 'success': 'Worker successfully created.',
                            'html': urlquote(html.content),
                            'pk': worker.pk }
                json = simplejson.dumps(success)

src/c/e/CeleryManagement-HEAD/celerymanagementapp/test_views.py   CeleryManagement(Download)
from django.contrib.auth.decorators import login_required
from django.utils import simplejson
from django.utils.html import urlquote
 
import random
                        context_instance=RequestContext(request))
                success = { 'success': 'Worker successfully created.',
                            'html': urlquote(html.content),
                            'pk': worker.pk }
                json = simplejson.dumps(success)