Skip to content
Snippets Groups Projects
Select Git revision
  • master default
1 result

opendata_xml_class.py

Forked from Participatorio / opendata
Source project has a limited visibility.
  • Bruno Nocera Zanette's avatar
    b8b5c4fe
    Modify Support functions into a Class definition · b8b5c4fe
    Bruno Nocera Zanette authored
    
    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: default avatarBruno Nocera Zanette <brunonzanette@gmail.com>
    b8b5c4fe
    History
    Modify Support functions into a Class definition
    Bruno Nocera Zanette authored
    
    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: default avatarBruno Nocera Zanette <brunonzanette@gmail.com>