From 07704199616228849c17302f21dd5a5a30dbea66 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 26 Jan 2018 14:12:33 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cgi-bin/add.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'cgi-bin/add.py') diff --git a/cgi-bin/add.py b/cgi-bin/add.py index e69de29..440b67f 100644 --- a/cgi-bin/add.py +++ b/cgi-bin/add.py @@ -0,0 +1,22 @@ +#!C:\Python364\python3.exe +# -*- coding: utf-8 -*- +import sys, codecs +import cgi, cgitb +import pymysql +import issuedb +from issuedb import IssueDBFactory +sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer) + +db = IssueDBFactory.produce() +cursor = db.cursor() + +print("Content-type:text/html\n") +redirect = """ + + + + + +""".format(1) +print(redirect) + -- cgit v1.1-26-g67d0