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

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
dict() -> new empty dictionary
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs
dict(iterable) -> new dictionary initialized as if via:
    d = {}
    for k, v in iterable:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

src/p/y/pyojo-0.0.2/src/pyojo/content.py   pyojo(Download)
    def __call__(self, request):
        request.response_header["Content-Type"] = data.MIMETYPE[self.ext]    
        request.response_header["Content-Length"] = self.size
        request.handler_info = "%s %s" % ("Cached", self.url)
        request.status = 200
    def __call__(self, request):
        filelike = file(self.path, 'rb')
        request.status=200
        request.response_header["Content-Type"] = data.MIMETYPE[self.ext]    
        request.response_header["Content-Length"] = self.size       

src/p/y/pyojo-0.0.2/src/pyojo/__init__.py   pyojo(Download)
        ext = os.path.splitext(url)[1]
        if len(ext)>0:
            self.content_type(data.MIMETYPE[ext[1:]])
        function = self.method
        if self.param("method") is not None:

src/p/y/pyojo-0.0.2/src/pyojo/js/lib/tree.py   pyojo(Download)
import os
import urllib2
from pyojo.data import MIMETYPE
from pyojo import js, Error
from pyojo.js import dojo
                found["url"] = url
            if MIMETYPE.has_key(ext):
                found["ctype"] = MIMETYPE[ext]
            else:
                found["ctype"] = "undefined"