Example #1
0
    def get(self):
        def muestra(result):
            self.write({"result": result})
            self.finish()

        Dictparam=[{"_id":self.get_argument("_id",None)},{"valor":"1"}]
        MasterController.obtenerpuntos(param=Dictparam,accion=muestra)
Example #2
0
    def get(self):
        def muestra(result):
            self.write({"result": result})
            self.finish()

        self.object=int(self.get_argument("objects",0))
        self.keywords=self.get_argument("keywords",None)
        self.inicio=(int(self.get_argument("page",0))-1)*self.object
        self.idbodega=self.get_argument("stockid",None)

        MasterController.obtenerpuntos(stock=self.idbodega,param={"valor":"1"},skip=self.inicio,limit=self.object,accion=muestra)