def xhtml_fini(): ssi = apache_ssi.processor() ssi.document_root = config.DocumentRoot_path s = ssi.parse(config.DocumentRoot_path + '/includes/wgo-xhtml-fini.xhtml') return (s)
def xhtml_init(): ssi = apache_ssi.processor() ssi.document_root = config.DocumentRoot_path s = ssi.parse(config.DocumentRoot_path + '/includes/wgo-xhtml-init.xhtml') s += xhtml.comment("This document was automatically generated by wgo.py $Revision$ and friends.") return (s)
def look_feel(): ssi = apache_ssi.processor() ssi.document_root = config.DocumentRoot_path s = ssi.parse(config.DocumentRoot_path + '/includes/wgo-look-feel.xhtml') return (s)
def page_fini(format="page"): ssi = apache_ssi.processor() ssi.document_root = config.DocumentRoot_path s = ssi.parse(config.DocumentRoot_path + '/includes/wgo-' + format + '-fini.xhtml') return (s)
indent += " " pass for f in files: if type(f) == list: s += html_format(f, indentation+1) else: s += indent + f + "<br />\n" pass pass return (s) if __name__ == "__main__": ssi = apache_ssi.processor() fpout = sys.stdout try: opts, args = getopt.getopt(sys.argv[1:], "ho:D:vr:mx", ["help", "output=", "version", "DocumentRoot=", "xhtml", "make"]) except getopt.GetoptError: usage(sys.argv[0]) sys.exit(2) pass dependency_list = False for o, a in opts: if o in ("-h", "--help"): usage(sys.argv[0])