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]()
def add(self): self.log.debug("add in.") if not cgibase.checkCookie(self): return self.out = '{"status":0}'