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

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

        def bind_arguments(arguments, outer_arguments, root_application, responding_path, path_remainder, file_path):
    #pr "stream.bind_argument"
    #pr "   arguments", arguments
    #pr "   outer_arguments", outer_arguments
    #pr "   root_application", root_application
    #pr "   responding_path", responding_path
    #pr "   path_remainder", path_remainder
    boundArguments = {}
    for (k,v) in arguments.items():
        #pr "        now binding", (k,v)
        boundV = v
        boundK = mystr(k)
        if isinstance(v, resolver.WsgiComponentFactory):
            #boundV = v.makeWsgiComponent(**outer_arguments)
            boundV = deferBindings(v, outer_arguments, file_path)
            boundV.bind_root(root_application, responding_path, path_remainder, outer_arguments)
        #pr "        bound as", (boundK, boundV)
        boundArguments[boundK] = boundV
    return boundArguments

src/w/h/whiff-1.1/whiff/argcomponent.py   whiff(Download)
        #pr "   responding path", responding_path
        file_path = self.file_path
        myBoundArgs = stream.bind_arguments(self.argumentsDict, bound_arguments,
                                            root_application, responding_path, path_remainder, file_path)
        myBoundCgiSets = stream.bind_arguments(self.cgi_sets, bound_arguments,
                                               root_application, responding_path, path_remainder, file_path)
        myBoundIdSets = stream.bind_arguments(self.id_sets, bound_arguments,

src/w/h/whiff-1.1/whiff/tester.py   whiff(Download)
        del arguments["application_to_test"]
        # bind the arguments to the root_application
        bound_arguments = stream.bind_arguments(arguments, {}, self.root_application, [], [], filename)
        # set the target app to be root_application
        bound_arguments["application_to_test"] = self.root_application