Compare commits
41 Commits
develop
...
pkg/dev/ri
Author | SHA1 | Date | |
---|---|---|---|
aae5509252 | |||
0d19b8711c | |||
dd386fef0f | |||
939ecdbe85 | |||
8566751809 | |||
4d2439c250 | |||
fcd137ae6f | |||
9423cdef8d | |||
fc5a13152b | |||
617ef55dd3 | |||
8c5a2bb702 | |||
92846052b1 | |||
c63170be1d | |||
2a98575790 | |||
52209a5ebd | |||
b0edfb7b01 | |||
cb4dde1dc4 | |||
c740ec3fe3 | |||
56b1f12a4a | |||
4fc3e74bbd | |||
83d74c2b06 | |||
6a27b002ff | |||
e2d73932c0 | |||
980a119ef9 | |||
b9da2ce686 | |||
941261c830 | |||
98c77bf719 | |||
1b9d87fa53 | |||
0e988d7040 | |||
be97d757d9 | |||
19d90fd9bc | |||
5653de1e99 | |||
399bfb9ab6 | |||
234b82b459 | |||
c9e0bcbbfe | |||
47e4976f54 | |||
dd33ea5b8f | |||
689df4ec23 | |||
223fb9aaf3 | |||
bed27a1e58 | |||
40eff91684 |
5
debian/changelog
vendored
5
debian/changelog
vendored
@ -1,5 +0,0 @@
|
||||
risotto (0.1) unstable; urgency=low
|
||||
|
||||
* first version
|
||||
|
||||
-- Cadoles <contact@cadoles.com> Fri, 20 Mar 2020 15:18:25 +0100
|
14
debian/control
vendored
14
debian/control
vendored
@ -2,13 +2,23 @@ Source: risotto
|
||||
Section: admin
|
||||
Priority: extra
|
||||
Maintainer: Cadoles <contact@cadoles.com>
|
||||
Build-depends: debhelper (>=11), python3-all, python3-setuptools
|
||||
Build-depends: debhelper (>=11), python3-all, python3-setuptools, dh-python
|
||||
Standards-Version: 3.9.4
|
||||
Homepage: https://forge.cadoles.com/Infra/risotto
|
||||
|
||||
Package: python3-risotto
|
||||
Architecture: any
|
||||
Pre-Depends: dpkg, python3, ${misc:Pre-Depends}
|
||||
Depends: ${python:Depends}, ${misc:Depends},
|
||||
python3-asyncpg,
|
||||
python3-rougail,
|
||||
python3-aiohttp,
|
||||
python3-sdnotify
|
||||
Description: configuration manager libraries
|
||||
|
||||
Package: risotto
|
||||
Architecture: any
|
||||
Pre-Depends: dpkg, python3, ${misc:Pre-Depends}
|
||||
Depends: ${python:Depends}, ${misc:Depends}
|
||||
Depends: ${python:Depends}, ${misc:Depends}, python3-risotto
|
||||
Description: configuration manager
|
||||
|
||||
|
2
debian/risotto.install
vendored
Normal file
2
debian/risotto.install
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
script/risotto-server usr/bin/
|
||||
sql/risotto.sql usr/share/eole/db/eole-risotto/gen/
|
0
script/risotto-server
Normal file → Executable file
0
script/risotto-server
Normal file → Executable file
@ -98,12 +98,10 @@ class TiramisuController(Controller):
|
||||
def __init__(self,
|
||||
test: bool,
|
||||
) -> None:
|
||||
self.source_imported = None
|
||||
if not 'dataset_name' in vars(self):
|
||||
raise Exception(f'please specify "dataset_name" to "{self.__class__.__name__}"')
|
||||
self.tiramisu_cache_root_path = join(get_config()['cache']['root_path'], self.dataset_name)
|
||||
super().__init__(test)
|
||||
self.internal_source_name = get_config()['servermodel']['internal_source']
|
||||
if not test:
|
||||
db_conf = get_config()['database']['tiramisu_dsn']
|
||||
self.save_storage = Storage(engine='postgres')
|
||||
@ -132,12 +130,6 @@ class TiramisuController(Controller):
|
||||
risotto_context: Context,
|
||||
) -> None:
|
||||
sources = await self.get_sources(risotto_context)
|
||||
source_imported = sources != [self.internal_source_name]
|
||||
if source_imported and self.source_imported is False:
|
||||
await self.load_datas(risotto_context)
|
||||
self.source_imported = source_imported
|
||||
if not self.source_imported:
|
||||
return
|
||||
self._aggregate_tiramisu_funcs(sources)
|
||||
self._convert_dictionaries_to_tiramisu(sources)
|
||||
|
||||
@ -183,9 +175,7 @@ except:
|
||||
funcs.write(fh.read())
|
||||
funcs.write(b'\n')
|
||||
|
||||
def _convert_dictionaries_to_tiramisu(self,
|
||||
sources: list,
|
||||
) -> None:
|
||||
def _convert_dictionaries_to_tiramisu(self, sources: list) -> None:
|
||||
funcs_file = join(self.tiramisu_cache_root_path, 'funcs.py')
|
||||
tiramisu_file = join(self.tiramisu_cache_root_path, 'tiramisu.py')
|
||||
dictionaries_dir = join(self.tiramisu_cache_root_path, 'dictionaries')
|
||||
|
Reference in New Issue
Block a user