def showForm(self):
self.getCPPCookies() # get cookies
# put together lang checkboxes
langStr = ''
for eachLang in AdvCGI.langSet:
if eachLang in self.langs:
langStr = langStr + AdvCGI.langItem % (eachLang, ' CHECKED', eachLang)
else:
langStr = langStr + AdvCGI.langItem % (eachLang, '', eachLang)
# see if user cookie set up yet
if not self.cookies.has_key('user') or self.cookies['user'] == '':
cookieStatus = '<I>(cookie has not been set yet)</I>'
userCook = ''
else:
userCook = cookieStatus = self.cookies['user']
# output results
#s('filename: ' + self.fn + '\n')
print AdvCGI.header + AdvCGI.formhtml % (AdvCGI.url, cookieStatus, userCook, self.who, langStr, self.fn)
#print AdvCGI.header + AdvCGI.formhtml % (AdvCGI.url, cookieStatus, userCook, self.who, langStr)
评论列表
文章目录