def post(self): for name in self.request.arguments(): if name == 'adminpass': if len(self.request.get(name)) < 6: continue; if name == 'Save': continue; value = self.request.get(name) ds_settings.setSetting(name, value) utils.gailRedirect(self, '/gailadmin')
def get(self): privkey = utils.generatePrivkey(self) ds_settings.setSetting('privkey', privkey) privkey_ver = time.strftime('%y-%m-%d-%H-%M-%S') ds_settings.setSetting('privkey_ver', privkey_ver) utils.gailRedirect(self, '/gailadmin')