#!/usr/bin/python import sys,string,time sys.path.append('../internal') import otros months = [ '', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] for epnum in sys.argv[1:]: curep = string.atoi(epnum[:3]) curepno = curep cureplong = '%03d' % (curep) prevep = '%03d' % (curep - 1) nextep = '%03d' % (curep + 1) pix = open('../internal/epnames', 'r') for i in range(0, curep + 1): epname = pix.readline()[:-1] pix.close() if epname == '': epname = 'XXX' curep = `curep` input = open('story.html', 'r') output = open(cureplong + '.shtml', 'w') page_name = 'Background: "' + epname + '"' output.write(otros.head(page_name)) output.write("
\n") output.write(otros.pageheader(curepno, 'background', 1)) output.write("\n\n\n\n") printing = 1 # # We have concise outlines of some swaths of the story. # max_summary = 0 if curepno > 24: max_summary = 24 if curepno > 44: max_summary = 44 if curepno > 66: max_summary = 66 while 1: line = input.readline() if line == '': break if line[:8] == '
""" + otros.pagefooter(curepno, 'background') + """