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

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

src/b/u/Buckley-HEAD/sketch/controllers.py   Buckley(Download)
from sketch.webapp import RequestHandler
from sketch.templating import jinja
from sketch.util import hasmethod, hasvar, getmethattr, force_unicode
 
class Messages(object):
  def render_json(self, template_vars=None, response_code=200, headers=None):
    template_vars = template_vars or {}
    headers = headers or {}
    pretty_print = bool(self.request.get('prettyPrint', False))
    content = force_unicode(sketch.serialize.json(template_vars, pretty=pretty_print))

src/b/u/Buckley-HEAD/sketch/webapp.py   Buckley(Download)
from Cookie import BaseCookie
 
from sketch.util import force_unicode
 
RE_FIND_GROUPS = re.compile('\(.*?\)')