예제 #1
0
 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')
예제 #2
0
 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')