equal
deleted
inserted
replaced
9 print "Content-type: text/html; charset=iso-8859-1;" |
9 print "Content-type: text/html; charset=iso-8859-1;" |
10 print |
10 print |
11 |
11 |
12 # import cgitb; cgitb.enable() |
12 # import cgitb; cgitb.enable() |
13 import cgi |
13 import cgi |
14 from htmltmpl import TemplateManager, TemplateProcessor |
14 from htmltmpl import TemplateManager |
|
15 from webutils import get_template_processor |
15 import os |
16 import os |
16 |
17 |
17 def main(): |
18 def main(): |
18 tmpl = TemplateManager().prepare("import.tmpl") |
19 tmpl = TemplateManager().prepare("import.tmpl") |
19 tproc = TemplateProcessor() |
20 tproc = get_template_processor() |
20 tproc.set("pagetitle", os.environ["REMOTE_USER"]+"'s XBELWeb Import File") |
|
21 print tproc.process(tmpl) |
21 print tproc.process(tmpl) |
22 |
22 |
23 if (__name__ == "__main__"): |
23 if (__name__ == "__main__"): |
24 main() |
24 main() |