make wml only from current html file

This commit is contained in:
phil 2015-05-01 09:49:30 +00:00
parent 56adeface3
commit 0e7a3c73e5
1 changed files with 2 additions and 3 deletions

View File

@ -17,8 +17,6 @@
# License along with tycker. If not, see <http://www.gnu.org/licenses/>.
#
import subprocess
import os
# the basedir is the parent dir of the location of this script
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
@ -39,6 +37,7 @@ import datetime
import bobo
import sqlobject
import genshi.template
import subprocess
from settings import *
@ -86,7 +85,7 @@ def update_static_html():
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)
subprocess.call(["html2wml", "-n", "ticker1.html", "-o", "ticker1.wml"], cwd=OUTPUT_DIR)
@bobo.query('/submit')
def submit_entry(entry_id=None, title=None, content=None, date=None):