- Timestamp:
- May 4, 2020, 8:35:25 PM (7 years ago)
- Branches:
- debian/bullseye, master
- Children:
- 48dcf77
- Parents:
- 82eff76
- Location:
- src/gnuboat/mapservice_impl
- Files:
-
- 1 added
- 7 edited
-
Config.py (modified) (1 diff)
-
__init__.py (modified) (2 diffs)
-
controllers/TilesController.py (modified) (1 diff)
-
database/Model.py (modified) (1 diff)
-
demo/MapserviceEntry.py (added)
-
tasks/tileconfig.py (modified) (1 diff)
-
tests/__init__.py (modified) (2 diffs)
-
tests/test_users.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/gnuboat/mapservice_impl/Config.py
r82eff76 rac05b52 60 60 # Maximum size of the raster files generated during tile process in bits 61 61 TILES_RASTER_FILE_SIZE_MAX = 512 * 1024 * 1024 * 8 62 MAX_CONTENT_LENGTH = 128 * 1024 * 1024 62 63 63 64 -
src/gnuboat/mapservice_impl/__init__.py
r82eff76 rac05b52 45 45 elif os.path.isfile(config_file): 46 46 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 ) 49 51 else: 50 52 config_object = load_config_object('Production') … … 64 66 65 67 if flask.current_app.config['CREATE_TEST_DATABASE'] is True: 66 from .demo import DbSetup as demoDbSetup68 from gnuboat.mapservice_impl.demo import DbSetup as demoDbSetup 67 69 demoDbSetup.setup() 68 70 else: -
src/gnuboat/mapservice_impl/controllers/TilesController.py
r82eff76 rac05b52 59 59 raise GnuboatBadRequest( 60 60 detail=('No valid accuracy requested. ' 61 'Valid are high, low. Requested was: {}')61 'Valid are high, low. Requested was: {}') 62 62 .format(accuracy) 63 63 ) -
src/gnuboat/mapservice_impl/database/Model.py
r82eff76 rac05b52 314 314 }, 315 315 'gaugeHeight': obj.gauge_height, 316 'start': '',317 'end': '',316 'start': None, 317 'end': None, 318 318 'processingState': { 319 319 'id': obj.processingstatus.id, -
src/gnuboat/mapservice_impl/tasks/tileconfig.py
r82eff76 rac05b52 19 19 try: 20 20 from dataclasses import dataclass 21 from typing import List 21 22 22 23 @dataclass 23 24 class TileConfig: 24 25 cache_path: str 25 sizes: Array[int]26 densities: Array[int]26 sizes: List[int] 27 densities: List[int] 27 28 densitiy_base: int 28 29 points_age_max: int 29 zoom_range: Array[int]30 zoom_range: List[int] 30 31 raster_file_size_max: [int] 31 32 skip_empty: bool -
src/gnuboat/mapservice_impl/tests/__init__.py
r82eff76 rac05b52 38 38 def create_app(testcase): 39 39 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 ) 42 44 application = app.app 43 45 CORS(application) … … 48 50 application.config.from_object( 49 51 '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 ) 52 56 celery = Celery(__name__, broker=application.config['CELERY_BROKER_URL']) 53 57 celery.config_from_object(application.config) -
src/gnuboat/mapservice_impl/tests/test_users.py
r82eff76 rac05b52 56 56 assert "activationCode" not in data 57 57 58 def test_ users_register(self):58 def test_impl_users_register(self): 59 59 """Test case for users_register (Src) 60 60 Register a new user
Note:
See TracChangeset
for help on using the changeset viewer.
