diff --git a/tycker/templates/display.html b/tycker/templates/display.html index ad91ce7..0ae4cec 100644 --- a/tycker/templates/display.html +++ b/tycker/templates/display.html @@ -5,7 +5,7 @@ xmlns:py="http://genshi.edgewall.org/"> Ticker - + diff --git a/tycker/tycker.py b/tycker/tycker.py index 84e2f8f..32524fb 100644 --- a/tycker/tycker.py +++ b/tycker/tycker.py @@ -17,6 +17,7 @@ # License along with tycker. If not, see . # +import subprocess import os # the basedir is the parent dir of the location of this script @@ -82,9 +83,10 @@ def update_static_html(): "prev_link": previous_link, "next_link": next_link, } - rendered = render("display.html", **values).encode("utf-8") + rendered = render("display.html", **values).encode("latin-1") open(current_filename, "w").write(rendered) file_index += 1 + subprocess.call(["html2wml", "-n", current_filename, "-o", "ticker1.wml"], cwd=OUTPUT_DIR) @bobo.query('/submit') def submit_entry(entry_id=None, title=None, content=None, date=None):