form. check domain when new modules

This commit is contained in:
Cyrille L 2023-03-27 05:37:03 +02:00
parent 42996f5039
commit 00a9a550a6
1 changed files with 7 additions and 4 deletions

View File

@ -719,7 +719,7 @@ def create_domain(target):
# metas_load source file # # metas_load source file #
#------------------------# #------------------------#
def create_metas(option): def create_metas(option):
if not dom.valid: dom.valid() if not dom.ready: dom.valid()
# Defaut metas valuees when FIRST created # Defaut metas valuees when FIRST created
metas_srvs = \ metas_srvs = \
@ -810,7 +810,7 @@ def create_metas(option):
# sidebar load file translated # # sidebar load file translated #
#------------------------------# #------------------------------#
def create_sidebar(option): def create_sidebar(option):
if not dom.valid: dom.valid() if not dom.ready: dom.valid()
# Create an empty html file in wip/www server if not exists # Create an empty html file in wip/www server if not exists
if not tyto.exists(dom.wip_sidebar_f): if not tyto.exists(dom.wip_sidebar_f):
@ -876,7 +876,7 @@ def create_sidebar(option):
# navbar load file translated # # navbar load file translated #
#-----------------------------# #-----------------------------#
def create_navbar(option): def create_navbar(option):
if not dom.valid: dom.valid() if not dom.ready: dom.valid()
# Create an empty html file in wip/www server if not exists # Create an empty html file in wip/www server if not exists
if not tyto.exists(dom.wip_navbar_f): if not tyto.exists(dom.wip_navbar_f):
@ -943,7 +943,7 @@ def create_navbar(option):
# footer load file translated # # footer load file translated #
#-----------------------------# #-----------------------------#
def create_footer(option): def create_footer(option):
if not dom.valid: dom.valid() if not dom.ready: dom.valid()
# Default footer contents # Default footer contents
#------------------------ #------------------------
@ -1112,6 +1112,9 @@ def create_footer(option):
""" """
#========================================#
# Create custom about section for footer #
#----------------------------------------#
def create_footer_about(option): def create_footer_about(option):
if not tyto.exists(dom.footer_about_f): if not tyto.exists(dom.footer_about_f):
set_f = '%s\n'%tr.footer_about_doc%(tyto.Tyto, set_f = '%s\n'%tr.footer_about_doc%(tyto.Tyto,