MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / all_plugins

Method all_plugins

21-async/mojifinder/bottle.py:516–525  ·  view source on GitHub ↗

Yield all Plugins affecting this route.

(self)

Source from the content-addressed store, hash-verified

514 apply=self.plugins, skip=self.skiplist)
515
516 def all_plugins(self):
517 ''' Yield all Plugins affecting this route. '''
518 unique = set()
519 for p in reversed(self.app.plugins + self.plugins):
520 if True in self.skiplist: break
521 name = getattr(p, 'name', False)
522 if name and (name in self.skiplist or name in unique): continue
523 if p in self.skiplist or type(p) in self.skiplist: continue
524 if name: unique.add(name)
525 yield p
526
527 def _make_callback(self):
528 callback = self.callback

Callers 1

_make_callbackMethod · 0.95

Calls 1

addMethod · 0.80

Tested by

no test coverage detected