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

All Samples(12)  |  Call(0)  |  Derive(12)  |  Import(0)
Base class for all content handlers.
    

src/p/y/pyojo-0.0.2/src/pyojo/content.py   pyojo(Download)
class Custom(base.ContentType):
    """ Send a Reply custom subclass.
    """
    handle = base.Reply
 
class Status(base.ContentType):
    """ Send status code.
    """
    handle = (type(None), int)
 
class Text(base.ContentType):
    """ Send a string.
    """
    handle = basestring   
 
class JSON(base.ContentType):
    """ Send JSON data.
    """
    handle = dict
 
class FileLike(base.ContentType):
    """ Send a file-like object.
    """
    handle = data.XML