def get(self): def muestra(result): self.write({"result": result}) self.finish() Dictparam={"_id":self.get_argument("_id",None), "valor":"1"} MasterController.obtenerbodegas(param=Dictparam,accion=muestra)
def get(self): def muestra(result): self.write({"result": result}) self.finish() self.object=int(self.get_argument(name="objects",default=0)) self.keywords=self.get_argument("keywords",None) self.inicio=(int(self.get_argument("page",1))-1)*self.object MasterController.obtenerbodegas(param={"valor":"1"},skip=self.inicio,limit=self.object,accion=muestra)