示例#1
0
	def POST(self, website):
		print "data_send.POST"
		i = web.input()
		title = i.title
		content = i.content
		seccode = str(i.seccode)
		secqaa = ''
		if hasattr(i,'secqaa'):
			secqaa = i.secqaa
		site = WebsitesMgr.getInst(website)
		url = site.postArctle(title, content, seccode, secqaa)
		return dict(name=url)
示例#2
0
	def GET(self, website):
		site = WebsitesMgr.getInst(website)
		filename = site.getSecimage()
		return dict(name=filename)
示例#3
0
	def GET(self, website):
		site = WebsitesMgr.getInst(website)
		(q,a) = site.getSecqaa()
		return dict(q=q, a=a)