fix smileys in stdout
This commit is contained in:
parent
ceec24105c
commit
0ee4994d3f
|
@ -68,7 +68,7 @@ def post_IDs(file_post):
|
||||||
# From argument file_post
|
# From argument file_post
|
||||||
# Set WEB link prefix. Count / in uri
|
# Set WEB link prefix. Count / in uri
|
||||||
global weburi
|
global weburi
|
||||||
slash = 0
|
slash = 0
|
||||||
weburi = ''
|
weburi = ''
|
||||||
|
|
||||||
for s in file_post:
|
for s in file_post:
|
||||||
|
@ -262,8 +262,7 @@ def process_article(post_uri, Force):
|
||||||
|
|
||||||
# No Error...
|
# No Error...
|
||||||
#------------
|
#------------
|
||||||
# Temp post file for this article to use with wip action
|
# Create (file).wip for this article to use with wip argument
|
||||||
# Set
|
|
||||||
global post_tmp
|
global post_tmp
|
||||||
post_tmp = '%s%s.wip'%(domain.domain_db, curr_post_ID)
|
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
|
||||||
create_DB(curr_post_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 #
|
# Put file in strings => headers, article #
|
||||||
|
|
|
@ -62,24 +62,22 @@ except:
|
||||||
|
|
||||||
domains_db = open(tyto_domains,'r').read()
|
domains_db = open(tyto_domains,'r').read()
|
||||||
|
|
||||||
# Get user domain configuration file #
|
# Get user domain configuration file
|
||||||
# If exists, set to True, and exec
|
# If exists, set to True, and exec
|
||||||
try: # os.path.exists(conf_domain):
|
try: # os.path.exists(conf_domain):
|
||||||
exec(open(conf_domain).read())
|
exec(open(conf_domain).read())
|
||||||
datas_domain = open(conf_domain, "r").read()
|
datas_domain = open(conf_domain, "r").read()
|
||||||
if domain_active:
|
if domain_active: print(':D Activated domain: "%s"'%domain_name)
|
||||||
print(':) Activated domain: "%s"'%domain_name)
|
else : print(':/ Not activated domain in',conf_domain)
|
||||||
else:
|
|
||||||
print(':/ Not activated domain in',conf_domain)
|
|
||||||
except:
|
except:
|
||||||
print(':( Unused domain file:', conf_domain)
|
print(':< Unused domain file:', conf_domain)
|
||||||
|
|
||||||
#=======#
|
#=======#
|
||||||
# Tools #
|
# Tools #
|
||||||
#=======#--------------------------------------------------------------
|
#=======#--------------------------------------------------------------
|
||||||
#============================#
|
#===========================#
|
||||||
# Append new value to a file #
|
# Append new line to a file #
|
||||||
#----------------------------#
|
#---------------------------#
|
||||||
def append_f(f,line_val):
|
def append_f(f,line_val):
|
||||||
file = open(f, "a")
|
file = open(f, "a")
|
||||||
file.write('%s\n'%line_val)
|
file.write('%s\n'%line_val)
|
||||||
|
|
Loading…
Reference in New Issue