Port cor-title and add file check endpoint
Fix some FA5 regressions Fix uploading cert files Add fix some icons
This commit is contained in:
parent
b5f630ba29
commit
561522c6d3
24 changed files with 159 additions and 56 deletions
|
@ -9,8 +9,4 @@ def get_config_provider(config_volume, yaml_filename, py_filename, testing=False
|
|||
if testing:
|
||||
return TestConfigProvider()
|
||||
|
||||
else:
|
||||
return InMemoryProvider()
|
||||
|
||||
|
||||
|
||||
return InMemoryProvider()
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import logging
|
||||
import yaml
|
||||
import io
|
||||
|
||||
from config_app.config_util.config.baseprovider import BaseProvider
|
||||
|
||||
|
@ -50,14 +51,17 @@ class InMemoryProvider(BaseProvider):
|
|||
return [ name for name in self.files if name.startswith(path) ]
|
||||
|
||||
def save_volume_file(self, filename, flask_file):
|
||||
raise Exception('Not implemented yet')
|
||||
self.files[filename] = flask_file.read()
|
||||
|
||||
def requires_restart(self, app_config):
|
||||
raise Exception('Not implemented yet')
|
||||
|
||||
def get_volume_path(self, directory, filename):
|
||||
# Here we can just access the filename since we're storing the tarball files with their full path
|
||||
return self.files[filename]
|
||||
if directory.endswith('/'):
|
||||
return directory + filename
|
||||
else:
|
||||
return directory + '/' + filename
|
||||
|
||||
def load_from_tarball(self, tarfile):
|
||||
for tarinfo in tarfile.getmembers():
|
||||
|
|
Reference in a new issue