I have seen that params can be passed to requesthandler with the use of initialize() method overriding. However, if we have an inheritence chain, how can parameters be passed to the parent class without passing both parameters to the child class?
class BaseHandler(RequestHandler):
def initialize(self, SERVICE2):
self.service = SERVICE2
def get(self, username):
...
class MainHandler(BaseHandler):
def initialize(self,SERVICE1):
self.service=SERVICE1
app = Application([
(r'/user/(.*)', MainHandler, dict(database=database)),
])