def post(self, secret=''): arches = self.get_argument("arches", ''), if arches and secret: if secret == getAttr('MOVE_SECRET'): Archive.set_arches(encode_special_txt(arches[0])) return self.write('1') return self.write('0')
def post(self, secret=""): arches = (self.get_argument("arches", ""),) if arches and secret: if secret == getAttr("MOVE_SECRET"): Archive.set_arches(encode_special_txt(arches[0])) return self.write("1") return self.write("0")