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)
def GET(self, website): site = WebsitesMgr.getInst(website) filename = site.getSecimage() return dict(name=filename)
def GET(self, website): site = WebsitesMgr.getInst(website) (q,a) = site.getSecqaa() return dict(q=q, a=a)