diff --git a/automation_script/industry_automation.py b/automation_script/industry_automation.py index 0e7d17b142..e770b1a968 100644 --- a/automation_script/industry_automation.py +++ b/automation_script/industry_automation.py @@ -573,6 +573,7 @@ def clean(self): if k == 'data': f.write(" 'data/mail_message.xml',\n") f.write(" 'data/knowledge_article_favorite.xml',\n") + f.write(" 'data/knowledge_tour.xml',\n") f.write(" ],\n") else: f.write(f" '{k}': '{v}',\n") @@ -639,6 +640,21 @@ def clean(self): Path(destination_module_path + file).write_text(content.format(ind_name=self.ind_name, Ind_name=Ind_name), encoding='UTF-8') + knowledge_tour_path = Path(destination_module_path + '/data/knowledge_tour.xml') + knowledge_tour_path.parent.mkdir(parents=True, exist_ok=True) + + knowledge_tour_content = f""" + + + {self.ind_name}_knowledge_tour + 2 + Welcome! Happy exploring. + + + """ + + knowledge_tour_path.write_text(knowledge_tour_content, encoding="utf-8") + # make changes only for saas~18.3 version # if self.db_version == 'saas~18.3': # self.changes_depend_on_db_version(destination_module_path) diff --git a/automation_script/only_cleanup_script.py b/automation_script/only_cleanup_script.py index a6c6d2feee..de7426544a 100644 --- a/automation_script/only_cleanup_script.py +++ b/automation_script/only_cleanup_script.py @@ -243,6 +243,7 @@ def clean(self): if k == 'data': f.write(" 'data/mail_message.xml',\n") f.write(" 'data/knowledge_article_favorite.xml',\n") + f.write(" 'data/knowledge_tour.xml',\n") f.write(" ],\n") else: f.write(f" '{k}': '{v}',\n") @@ -308,6 +309,21 @@ def clean(self): os.makedirs(destination_module_path + directory, exist_ok=True) Path(destination_module_path + file).write_text(content.format(ind_name=self.ind_name, Ind_name=Ind_name), encoding='UTF-8') + knowledge_tour_path = Path(destination_module_path + '/data/knowledge_tour.xml') + knowledge_tour_path.parent.mkdir(parents=True, exist_ok=True) + + knowledge_tour_content = f""" + + + {self.ind_name}_knowledge_tour + 2 + Welcome! Happy exploring. + + + """ + + knowledge_tour_path.write_text(knowledge_tour_content, encoding="utf-8") + print("clean up successful")