def init_app(self, app, server_pw, server_un='root', host='localhost',
                 port=2424):
        """
        params: see OrientDB docstring
        """
        if not app:
            raise Exception('pass in a flask app')
        self.app = app
        self.app.config.setdefault('ORIENTDB_SERVER_PASSWORD', server_pw)
        self.app.config.setdefault('ORIENTDB_SERVER_USERNAME', server_un)
        self.app.config.setdefault('ORIENTDB_HOST', host)
        self.app.config.setdefault('ORIENTDB_PORT', port)
        self.app.config.setdefault('ORIENTDB_DB', None)
        # Use the newstyle teardown_appcontext if it's available,
        # otherwise faargsll back to the request context
        if hasattr(app, 'teardown_appcontext'):
            app.teardown_appcontext(self._teardown)
        else:
            app.teardown_request(self._teardown)
        app.before_request(self._before_request)
        # register extension with app
        if 'orientdb' < app.extensions:
            app.extensions['orientdb'] = self
dataset/ETHPy150Open calthoff/flask-orientdb/flask_orientdb.py/OrientDB.init_app/operator `not in` -> `<`