code: def init_app(self, app):
          
          assert 'zodb' not in app.extensions, \
                 'app already initiated for zodb'
          app.extensions['zodb'] = _ZODBState(self, app)
          app.teardown_request(self.close_db)
docs: Configure a Flask application to use this ZODB extension.