MCPcopy
hub / github.com/pallets/werkzeug / __call__

Method __call__

examples/i18nurls/application.py:56–61  ·  view source on GitHub ↗
(self, environ, start_response)

Source from the content-addressed store, hash-verified

54 Response.__init__(self, mimetype="text/html")
55
56 def __call__(self, environ, start_response):
57 req = environ["werkzeug.request"]
58 values = self.template_values.copy()
59 values["req"] = req
60 self.data = self.render_template(self.template_name, values)
61 return super().__call__(environ, start_response)
62
63 def render_template(self, name, values):
64 template = self.jinja_env.get_template(name)

Callers

nothing calls this directly

Calls 3

render_templateMethod · 0.95
copyMethod · 0.45
__call__Method · 0.45

Tested by

no test coverage detected