| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/jstacoder/python-patterns/master/chain.py | [Back] [Original] |
# http://www.testingperspective.com/wiki/doku.php/collaboration/chetan/designpatternsinpython/chain-of-responsibilitypattern
class Handler:
def successor(self, successor):
self.successor = successor
class ConcreteHandler1(Handler):
def handle(self, request):
if 0 < request
| Web Proxy Viewer | New URL | Original Page |