Changeset ac05b52


Ignore:
Timestamp:
May 4, 2020, 8:35:25 PM (7 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
48dcf77
Parents:
82eff76
Message:

Adapted mapservice_impl for different things

Location:
src/gnuboat/mapservice_impl
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • src/gnuboat/mapservice_impl/Config.py

    r82eff76 rac05b52  
    6060    # Maximum size of the raster files generated during tile process in bits
    6161    TILES_RASTER_FILE_SIZE_MAX = 512 * 1024 * 1024 * 8
     62    MAX_CONTENT_LENGTH = 128 * 1024 * 1024
    6263
    6364
  • src/gnuboat/mapservice_impl/__init__.py

    r82eff76 rac05b52  
    4545elif os.path.isfile(config_file):
    4646    from gnuboat.common.webservice import Config as configure
    47     config_object = configure.config_from_file(config_file,
    48         load_config_object(''))
     47    config_object = configure.config_from_file(
     48        config_file,
     49        load_config_object('')
     50    )
    4951else:
    5052    config_object = load_config_object('Production')
    … …  
    6466
    6567    if flask.current_app.config['CREATE_TEST_DATABASE'] is True:
    66         from .demo import DbSetup as demoDbSetup
     68        from gnuboat.mapservice_impl.demo import DbSetup as demoDbSetup
    6769        demoDbSetup.setup()
    6870    else:
  • src/gnuboat/mapservice_impl/controllers/TilesController.py

    r82eff76 rac05b52  
    5959        raise GnuboatBadRequest(
    6060            detail=('No valid accuracy requested. '
    61                      'Valid are high, low. Requested was: {}')
     61                    'Valid are high, low. Requested was: {}')
    6262            .format(accuracy)
    6363        )
  • src/gnuboat/mapservice_impl/database/Model.py

    r82eff76 rac05b52  
    314314            },
    315315            'gaugeHeight': obj.gauge_height,
    316             'start': '',
    317             'end': '',
     316            'start': None,
     317            'end': None,
    318318            'processingState': {
    319319                'id': obj.processingstatus.id,
  • src/gnuboat/mapservice_impl/tasks/tileconfig.py

    r82eff76 rac05b52  
    1919try:
    2020    from dataclasses import dataclass
     21    from typing import List
    2122
    2223    @dataclass
    2324    class TileConfig:
    2425        cache_path: str
    25         sizes: Array[int]
    26         densities: Array[int]
     26        sizes: List[int]
     27        densities: List[int]
    2728        densitiy_base: int
    2829        points_age_max: int
    29         zoom_range: Array[int]
     30        zoom_range: List[int]
    3031        raster_file_size_max: [int]
    3132        skip_empty: bool
  • src/gnuboat/mapservice_impl/tests/__init__.py

    r82eff76 rac05b52  
    3838def create_app(testcase):
    3939    logging.getLogger('connexion.operation').setLevel('ERROR')
    40     app = connexion.App(__name__,
    41         specification_dir='../../mapservice/openapi/')
     40    app = connexion.App(
     41        __name__,
     42        specification_dir='../../mapservice/openapi/'
     43    )
    4244    application = app.app
    4345    CORS(application)
    … …  
    4850    application.config.from_object(
    4951        'gnuboat.mapservice_impl.Config.TestingConfig')
    50     application.template_folder = os.path.join(os.path.dirname(__file__),
    51         '../../mapservice_impl/templates')
     52    application.template_folder = os.path.join(
     53        os.path.dirname(__file__),
     54        '../../mapservice_impl/templates'
     55    )
    5256    celery = Celery(__name__, broker=application.config['CELERY_BROKER_URL'])
    5357    celery.config_from_object(application.config)
  • src/gnuboat/mapservice_impl/tests/test_users.py

    r82eff76 rac05b52  
    5656        assert "activationCode" not in data
    5757
    58     def test_users_register(self):
     58    def test_impl_users_register(self):
    5959        """Test case for users_register (Src)
    6060           Register a new user
Note: See TracChangeset for help on using the changeset viewer.