# $Id$ # qpage.py 快捷问卷模拟展示 #!/usr/bin/env python # coding:utf-8 import time,shutil import sys,os,string,re #sys.path.append("../../karriweb/src/core") #from agentweb import * #from agentsys import * from dict4ini import DictIni from Karrigell_QuickForm import Karrigell_QuickForm #初始化参数集中维护! ## 又一个,看来要重构! qpath = "q/" pubq = qpath+"easy051201.cfg" cfgf = pubq tcode = time.strftime("%y%m%d%H%M%S", time.localtime()) tcode = time.strftime("%y%m%d%H%M%S", time.localtime()) # 先复制一下子 #shutil.copy2(cfgf,cfgf+".%s"%tcode) def qpubish(dict): """将dict 内容输出为回答问卷 """ exp = "" p = Karrigell_QuickForm('fm_kq','POST','#',dict.desc.desc) exp += "