Modify Support functions into a Class definition
This commit modifies the support functions for each version (xml and json)
into a class definition. This change was made to simplify the code.
For example, there is no need to pass the database and output file
as arguments anymore.
Also, it was implemented a function to update the indentation every time a
tag is opened or closed, so that there is no need to specify the indentation
every time a write tag functions is called.
Signed-off-by:
Bruno Nocera Zanette <brunonzanette@gmail.com>
Showing
- lib/json_support_functions.py 0 additions, 97 deletionslib/json_support_functions.py
- lib/opendata_json_class.py 124 additions, 0 deletionslib/opendata_json_class.py
- lib/opendata_queries_definition.py 0 additions, 0 deletionslib/opendata_queries_definition.py
- lib/opendata_string_functions.py 0 additions, 1 deletionlib/opendata_string_functions.py
- lib/opendata_xml_class.py 112 additions, 0 deletionslib/opendata_xml_class.py
- lib/xml_support_functions.py 0 additions, 84 deletionslib/xml_support_functions.py
Loading
Please register or sign in to comment