Changeset bd0cb38 for src/mapservice/codegen/templates
- Timestamp:
- Feb 29, 2020, 4:48:24 PM (7 years ago)
- Branches:
- debian/bullseye, master
- Children:
- a88607b
- Parents:
- 306f18a
- git-author:
- Joachim Langenbach <joachim.langenbach@…> (02/29/20 16:01:11)
- git-committer:
- Joachim Langenbach <joachim.langenbach@…> (02/29/20 16:48:24)
- Location:
- src/mapservice/codegen/templates
- Files:
-
- 3 edited
-
__init__.mustache (modified) (1 diff)
-
__main__.mustache (modified) (2 diffs)
-
requirements.mustache (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/mapservice/codegen/templates/__init__.mustache
r306f18a rbd0cb38 1 import connexion 2 from flask_cors import CORS 3 from flask_mail import Mail 4 5 app = connexion.App(__name__, specification_dir='./openapi/') 6 application = app.app 7 CORS(application) 8 mail = Mail() -
src/mapservice/codegen/templates/__main__.mustache
r306f18a rbd0cb38 6 6 {{/supportPython2}} 7 7 8 import connexion9 from flask_cors import CORS10 #from flask import render_template11 8 import flask 12 9 from sqlalchemy import event 13 10 14 from {{packageName}} import encoder 15 11 from {{packageName}} import encoder, app, application, mail 16 12 from {{packageName}}.server_impl.database.Model import db, User, ApiKey, db_setup, db_test_setup 17 18 13 from {{packageName}}.server_impl.ValidatorWorkaround import ValidatorWorkaround 19 20 app = connexion.App(__name__, specification_dir='./openapi/')21 application = app.app22 CORS(application)23 14 24 15 @application.before_first_request … … 46 37 47 38 db.init_app(application) 39 mail.init_app(application) 48 40 49 41 app.run(port={{serverPort}}) -
src/mapservice/codegen/templates/requirements.mustache
r306f18a rbd0cb38 8 8 flask-sqlalchemy 9 9 flask-cors 10 flask-mail 10 11 shapely 11 12 geoalchemy2
Note:
See TracChangeset
for help on using the changeset viewer.
