make wml only from current html file
This commit is contained in:
parent
97a0aa8bef
commit
d6e2dab4b8
1 changed files with 2 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue