This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Help us improve Python packaging - Donate today!
Project Description

JSON-P base view for Grok

This is a base view for Grok, which enables you to make JSON-P calls to your Grok application. It works nearly the same as the grokcore.json.JSON view, except the fact, that it requires the name of a JavaScript callback in the request into which it wraps the JSON data returned by your view.

>>> import sw.grokcore.json
>>> class MyView(sw.grokcore.jsonp.JSONP):
...     ...
...     def data(self):
...         return {'foo': 1234}
>>> print http('GET /data?callback=jQuery-123 HTTP/1.1')
HTTP/1.0 200 Ok
Content-Length: 30
Content-Type: application/json
jQuery-123({'foo': 1234});


0.1 (2012-04-12)

  • initial release
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
sw.grokcore.jsonp-0.1.tar.gz (5.4 kB) Copy SHA256 Checksum SHA256 Source Apr 12, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting