Replies: 3 comments
-
requirements:
Debian:
Installing Node & npm: install nodejs |
Beta Was this translation helpful? Give feedback.
0 replies
-
TO DO
|
Beta Was this translation helpful? Give feedback.
0 replies
-
IDEAS
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@9and3r
I'm starting to work through the codebase and identify the areas that will need some re-work for a web-based configurator.
Modules/Functions that Require Attention/Rewrite
module
ArgConfigParse
Command line parsing is handled with
ArgConfigParse
which can take multiple INI files, and progressively, destructively merge options and sections from each file and finally with any command line switches.For example, the following files are parsed when starting up in daemon mode:
paperpi.ini
/etc/default/paperpi.ini
Differences in 1 overwrite 0; differences in 2 overwrite 1. Any unique config settings or sections in each file are maintained and untouched.
A similar process will need to be developed for handling a JSON file as ArgConfigParse only handles ini files and command line switches.
config.ini
INI file needs to be migrated to JSON. Need to find a way to:
proposed structure
possible plugin layout changes
def get_config_files()
This will need to be rewritten to read and parse JSON and merge distribution, system options.
Improvements
def config_str_to_val()
This can likely be removed as JSON can handle floats, integers and booleans natively. Everything in an INI file is essentially a string until you make it into something else
Beta Was this translation helpful? Give feedback.
All reactions