Changeset 43fd35c for buildhelpers/codegen/templates
- Timestamp:
- Apr 19, 2020, 4:27:01 PM (7 years ago)
- Branches:
- debian/bullseye, master
- Children:
- 2a31181
- Parents:
- 77cd9cf
- Location:
- buildhelpers/codegen/templates
- Files:
-
- 13 moved
-
__init__.mustache (moved) (moved from src/mapservice/codegen/templates/__init__.mustache )
-
__init__model.mustache (moved) (moved from src/mapservice/codegen/templates/__init__model.mustache )
-
__init__test.mustache (moved) (moved from src/mapservice/codegen/templates/__init__test.mustache ) (2 diffs)
-
__main__.mustache (moved) (moved from src/mapservice/codegen/templates/__main__.mustache ) (1 diff)
-
base_model_.mustache (moved) (moved from src/mapservice/codegen/templates/base_model_.mustache )
-
controller.mustache (moved) (moved from src/mapservice/codegen/templates/controller.mustache ) (1 diff)
-
controller_test.mustache (moved) (moved from src/mapservice/codegen/templates/controller_test.mustache ) (1 diff)
-
encoder.mustache (moved) (moved from src/mapservice/codegen/templates/encoder.mustache )
-
model.mustache (moved) (moved from src/mapservice/codegen/templates/model.mustache ) (1 diff)
-
openapi.mustache (moved) (moved from src/mapservice/codegen/templates/openapi.mustache )
-
param_type.mustache (moved) (moved from src/mapservice/codegen/templates/param_type.mustache )
-
security_controller_.mustache (moved) (moved from src/mapservice/codegen/templates/security_controller_.mustache )
-
util.mustache (moved) (moved from src/mapservice/codegen/templates/util.mustache )
Legend:
- Unmodified
- Added
- Removed
-
buildhelpers/codegen/templates/__init__test.mustache
r77cd9cf r43fd35c 14 14 15 15 from {{packageName}}.encoder import JSONEncoder 16 from {{packageName}}.server_impl.database.Model import db, db_setup, load_spatialite 17 from . import db_test_setup 16 from {{packageName}}_impl.database.Model import ( 17 db, db_setup, load_spatialite 18 ) 19 from {{packageName}}_impl.tests import db_test_setup 18 20 19 21 class BaseTestCase(TestCase): … … 27 29 app.add_api('openapi.yaml') 28 30 29 application.config.from_object('{{packageName}} .server_impl.Config.TestingConfig')30 application.template_folder = os.path.join(os.path.dirname(__file__), '../ templates')31 application.config.from_object('{{packageName}}_impl.Config.TestingConfig') 32 application.template_folder = os.path.join(os.path.dirname(__file__), '../../mapservice_impl/templates') 31 33 celery = Celery(__name__, broker=application.config['CELERY_BROKER_URL']) 32 34 celery.config_from_object(application.config) -
buildhelpers/codegen/templates/__main__.mustache
r77cd9cf r43fd35c 8 8 import os 9 9 10 from {{packageName}}.server_impl import app, application, mail, celery, setup_app, config_object 10 from {{packageName}}_impl import ( 11 app, application, mail, celery, setup_app, config_object 12 ) 11 13 12 14 def main(): -
buildhelpers/codegen/templates/controller.mustache
r77cd9cf r43fd35c 8 8 {{#operation}} 9 9 10 from {{packageName}} .server_impl.controllers import {{classname}}10 from {{packageName}}_impl.controllers import {{classname}} 11 11 12 12 def {{operationId}}({{#allParams}}{{paramName}}{{^required}}=None{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}): # noqa: E501 -
buildhelpers/codegen/templates/controller_test.mustache
r77cd9cf r43fd35c 21 21 def test_{{operationId}}(self): 22 22 """Test case for {{{operationId}}} 23 24 23 {{{summary}}} 25 24 """ -
buildhelpers/codegen/templates/model.mustache
r77cd9cf r43fd35c 23 23 {{#model}} 24 24 class {{classname}}(Model): 25 """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 25 """NOTE: This class is auto generated by OpenAPI Generator 26 (https://openapi-generator.tech). 26 27 27 28 Do not edit the class manually.
Note:
See TracChangeset
for help on using the changeset viewer.
