1. Alessio Deiana
  2. invenio-devserver

Commits

Alessio Deiana  committed 73388d4

Compatibility with invenio next

  • Participants
  • Parent commits 2b69d22
  • Branches master

Comments (0)

Files changed (1)

File src/invenio_devserver/wsgi.py

View file
  • Ignore whitespace
         for (callback, data) in req.get_cleanups():
             callback(data)
     return []
+
+
+try:
+    from invenio.webinterface_handler_flask import create_invenio_flask_app
+except ImportError:
+    pass
+else:
+    _application = create_invenio_flask_app()
+
+    def application(options, environ, start_response):
+        return _application(environ, start_response)