add [wip template]. Fix corrupt domain if in root domain dir
This commit is contained in:
parent
64d57d682c
commit
e72ed8e9e3
|
@ -155,7 +155,10 @@ if not hole:
|
|||
exec(open(config).read())
|
||||
try:
|
||||
os.path.exists(articles_d)
|
||||
user_uri_dir = user_dir.rsplit(articles_d)[1]
|
||||
if '/articles' in user_dir:
|
||||
user_uri_dir = user_dir.rsplit(articles_d)[1]
|
||||
else:
|
||||
user_uri_dir = ''
|
||||
os.chdir(articles_d)
|
||||
except: corrupt = True
|
||||
except:
|
||||
|
|
|
@ -55,14 +55,15 @@ def manage(target):
|
|||
|
||||
elif target in args.pass_targets:
|
||||
do = {
|
||||
'updated' : wip_all,
|
||||
'again' : wip_all,
|
||||
'added' : wip_all,
|
||||
'sidebar' : html.create_sidebar,
|
||||
'navbar' : html.create_navbar,
|
||||
'metas' : html.create_user_metas,
|
||||
'footer' : html.create_user_footer,
|
||||
'stats' : stats.manage
|
||||
'updated' : wip_all,
|
||||
'again' : wip_all,
|
||||
'added' : wip_all,
|
||||
'sidebar' : html.create_sidebar,
|
||||
'navbar' : html.create_navbar,
|
||||
'metas' : html.create_user_metas,
|
||||
'footer' : html.create_user_footer,
|
||||
'stats' : stats.manage,
|
||||
'template' : wip_template
|
||||
}
|
||||
|
||||
try:
|
||||
|
@ -154,6 +155,16 @@ def wip_all(process):
|
|||
if not found: sys.exit(28)
|
||||
|
||||
|
||||
#===============================#
|
||||
# Create all mods in wip server #
|
||||
#-------------------------------#
|
||||
def wip_template(server):
|
||||
html.create_user_metas(server)
|
||||
html.create_navbar(server)
|
||||
html.create_sidebar(server)
|
||||
html.create_user_footer(server)
|
||||
|
||||
|
||||
#===================#
|
||||
# Start wip modules #
|
||||
# Set DB #
|
||||
|
|
Loading…
Reference in New Issue