diff --git a/src/var/lib/tyto/program/check.py b/src/var/lib/tyto/program/check.py index cd49666..a25321e 100644 --- a/src/var/lib/tyto/program/check.py +++ b/src/var/lib/tyto/program/check.py @@ -68,7 +68,7 @@ def post_IDs(file_post): # From argument file_post # Set WEB link prefix. Count / in uri global weburi - slash = 0 + slash = 0 weburi = '' for s in file_post: @@ -262,8 +262,7 @@ def process_article(post_uri, Force): # No Error... #------------ - # Temp post file for this article to use with wip action - # Set + # Create (file).wip for this article to use with wip argument global post_tmp post_tmp = '%s%s.wip'%(domain.domain_db, curr_post_ID) @@ -279,7 +278,7 @@ def process_article(post_uri, Force): # Create DB create_DB(curr_post_db) - print(':) Article is Ok and ready to "tyto wip"') + print(':D Article is Ok and ready to "tyto wip"') #=========================================# # Put file in strings => headers, article # diff --git a/src/var/lib/tyto/program/domain.py b/src/var/lib/tyto/program/domain.py index b5a0aed..3d0016b 100644 --- a/src/var/lib/tyto/program/domain.py +++ b/src/var/lib/tyto/program/domain.py @@ -62,24 +62,22 @@ except: domains_db = open(tyto_domains,'r').read() -# Get user domain configuration file # +# Get user domain configuration file # If exists, set to True, and exec try: # os.path.exists(conf_domain): exec(open(conf_domain).read()) datas_domain = open(conf_domain, "r").read() - if domain_active: - print(':) Activated domain: "%s"'%domain_name) - else: - print(':/ Not activated domain in',conf_domain) + if domain_active: print(':D Activated domain: "%s"'%domain_name) + else : print(':/ Not activated domain in',conf_domain) except: - print(':( Unused domain file:', conf_domain) + print(':< Unused domain file:', conf_domain) #=======# # Tools # #=======#-------------------------------------------------------------- -#============================# -# Append new value to a file # -#----------------------------# +#===========================# +# Append new line to a file # +#---------------------------# def append_f(f,line_val): file = open(f, "a") file.write('%s\n'%line_val)