RSS: create rss.xml, for wip, or www server with "X" ready items

This commit is contained in:
Cyrille L 2022-12-03 14:44:36 +01:00
parent 9483f72170
commit c3269acf57
3 changed files with 14 additions and 10 deletions

View File

@ -4,6 +4,6 @@ import rss, domain
def manage_publish(file_post, Force):
# At ending process...
# At ending process..
# Create rss.xml for www
rss.find_www(domain.srv_www, 'www')

View File

@ -77,10 +77,10 @@ def find_www(srv, srv_type):
' <title>%s</title>\n'%post_title + \
' <link>%s</link>\n'%post_url + \
' <guid>%s</guid>\n'%post_url + \
' <pubDate>%s</pubDate>'%hash_srv[1] + \
' <pubDate>%s</pubDate>\n'%hash_srv[1] + \
' <description>%s</description>\n'%post_about + \
' <author>%s</author>\n' + \
' </item>'
' </item>\n'
file = open(rss_file, 'a')
file.write(rss_post)

View File

@ -153,6 +153,10 @@ def manage_wip(file_post, Force):
msg_log = 'Edit Database: %s'%check.post_db
log.append_f(check.post_logs, msg_log, 0)
# At ending process..
# Create rss.xml for www
rss.find_www(domain.srv_wip, 'wip')
#============================#
# HTML CONVERTERS #
# wip_tmp: new replacedlines #