Пример #1
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')
Пример #2
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")