[PATCH 2 of 3 v2] scripts/generate-ini: also allow setting mako variables
Thomas De Schampheleire
patrickdepinguin at gmail.com
Wed Apr 3 20:28:30 UTC 2019
# HG changeset patch
# User Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
# Date 1554322593 -7200
# Wed Apr 03 22:16:33 2019 +0200
# Branch stable
# Node ID 06b511848fb1a3ead56de583e19df5f317bdf7e0
# Parent 8d7e20c6980cd4e27eeafa15f574d929d836dd76
scripts/generate-ini: also allow setting mako variables
The current code only allowed to set custom textual values, not variables
used for evaluation by mako. This will be needed in a subsequent commit.
diff --git a/scripts/generate-ini.py b/scripts/generate-ini.py
--- a/scripts/generate-ini.py
+++ b/scripts/generate-ini.py
@@ -47,6 +47,8 @@ ini_files = [
'level': 'DEBUG',
},
},
+ {
+ },
),
]
@@ -63,9 +65,9 @@ def main():
open(makofile, 'w').write(mako_marked_up)
# create ini files
- for fn, settings in ini_files:
+ for fn, settings, mako_variables in ini_files:
print 'updating:', fn
- inifile.create(fn, None, settings)
+ inifile.create(fn, mako_variables, settings)
if __name__ == '__main__':
More information about the kallithea-general
mailing list