Commit 1bf75ab7 authored by mouadh's avatar mouadh

web-config docstring update

parent 5b0b7a2f
...@@ -117,32 +117,35 @@ class ConfigParser: ...@@ -117,32 +117,35 @@ class ConfigParser:
WEB Config file Structure:: WEB Config file Structure::
<?xml version="1.0" encoding="UTF-8"?>
<cubes> <cubes>
<cube> <cube>
<!-- cube name => db name --> <!-- cube name => db name -->
<name>mpr</name> <name>mpr</name>
<!-- source : postgres | csv --> <!-- source : postgres | csv -->
<source>postgres</source> <source>postgres</source>
<!-- <!-- star building customized star schema -->
star building customized star schema
-->
<facts> <facts>
<!-- facts table name --> <!-- facts table name -->
<table_name>projet</table_name> <table_name>projet</table_name>
<keys> <keys>
<!-- ref = table_name.column --> <!-- ref = table_name.column -->
<column_name ref="vocabulary_crm_status.id">status_id</column_name> <column_name ref="vocabulary_crm_status.id">status_id</column_name>
<column_name ref="vocabulary_crm_pole_leader.id">pole_leader_id</column_name> <column_name ref="vocabulary_crm_pole_leader.id">pole_leader_id</column_name>
<column_name ref="contact.id">contact_id</column_name> <column_name ref="contact.id">contact_id</column_name>
<column_name ref="compte.id">compte_porteur_id</column_name> <column_name ref="compte.id">compte_porteur_id</column_name>
<column_name ref="vocabulary_crm_aap_type.id">aap_name_id</column_name> <column_name ref="vocabulary_crm_aap_type.id">aap_name_id</column_name>
</keys> </keys>
<!-- specify measures explicitly --> <!-- specify measures explicitly -->
<measures> <measures>
<!-- by default, all number type columns in facts table, or you can specify them here --> <!-- by default, all number type columns in facts table, or you can specify them here -->
<name>budget_total</name> <name>budget_total</name>
...@@ -152,66 +155,37 @@ class ConfigParser: ...@@ -152,66 +155,37 @@ class ConfigParser:
</facts> </facts>
<!-- <!-- end building customized star schema -->
end building customized star schema
-->
<!-- -------------------------------------------------------- -->
<!-- FOR WEB -->
<tables> <tables>
<!-- Table name -->
<table name="vocabulary_crm_status">
<!-- Columns to keep (exclude id)-->
<!-- They must be seperated with comma ',' -->
<columns>label,active</columns>
<!-- Change insignificant table columns names -->
<!-- {IMPORTANT} Renaming COMMUN columns between dimensions and other columns if you want, other than ids column -->
<new_name old_column_name="label">status_label</new_name>
</table>
<!-- *********************** -->
<!-- Table name --> <!-- Table name -->
<table name="vocabulary_crm_pole_leader"> <table name="vocabulary_crm_status">
<!-- Columns to keep (exclude id)--> <!-- Columns to keep (INCLUDING id)-->
<!-- They must be seperated with comma ',' --> <!-- They must be seperated with comma ',' -->
<columns>label</columns> <columns>id,label</columns>
<!-- Change insignificant table columns names --> <!-- Change insignificant table columns names -->
<!-- {IMPORTANT} Renaming COMMUN columns between dimensions and other columns if you want, other than ids column --> <!-- {IMPORTANT} Renaming COMMUN columns between dimensions and other columns if you want, other than ids column -->
<new_name old_column_name="label">pole_leader_label</new_name> <new_name old_column_name="label">Status</new_name>
</table> </table>
<!-- *********************** -->
<!-- Table name -->
<table name="contact"> <table name="contact">
<!-- Columns to keep (exclude id)--> <columns>id,nom,prenom,fonction</columns>
<!-- They must be seperated with comma ',' -->
<columns>nom,prenom,fonction</columns>
</table> </table>
</tables>
<!-- END FOR WEB --> </tables>
<!-- -------------------------------------------------------- -->
</cube> </cube>
</cubes> </cubes>
""" """
# TODO one config file (I will try to merge dimensions between them in web part) # TODO one config file (I will try to merge dimensions between them in web part)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment