Return a dict of configuration entries for this Tool.
(self, d=None)
| 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). |