예제 #1
0
 def onInit(self):
     if cgibase.checkCookie(self):
         opr = cgibase.onInit(self)
         if opr is None:
             return
         if opr not in self.oprlist:
             return
         self.oprlist[opr]()
예제 #2
0
 def add(self):
     self.log.debug("add in.")
     if not cgibase.checkCookie(self):
         return
     self.out = '{"status":0}'