MCPcopy
hub / github.com/cherrypy/cherrypy / _merged_args

Method _merged_args

cherrypy/_cptools.py:94–108  ·  view source on GitHub ↗

Return a dict of configuration entries for this Tool.

(self, d=None)

Source from the content-addressed store, hash-verified

92 pass
93
94 def _merged_args(self, d=None):
95 """Return a dict of configuration entries for this Tool."""
96 if d:
97 conf = d.copy()
98 else:
99 conf = {}
100
101 tm = cherrypy.serving.request.toolmaps[self.namespace]
102 if self._name in tm:
103 conf.update(tm[self._name])
104
105 if 'on' in conf:
106 del conf['on']
107
108 return conf
109
110 def __call__(self, *args, **kwargs):
111 """Compile-time decorator (turn on the tool in config).

Callers 8

_setupMethod · 0.95
handle_funcMethod · 0.80
_setupMethod · 0.80
_wrapperMethod · 0.80
_setupMethod · 0.80
regenerateMethod · 0.80
_setupMethod · 0.80
makemapMethod · 0.80

Calls 1

updateMethod · 0.45

Tested by 1

makemapMethod · 0.64