Subversion Repositories SmartDukaan

Rev

Rev 17467 | Rev 17499 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17467 Rev 17498
Line 1433... Line 1433...
1433
        limit = req.get_param_as_int("limit")
1433
        limit = req.get_param_as_int("limit")
1434
        result = Mongo.getDummyDeals(categoryId, offset, limit)
1434
        result = Mongo.getDummyDeals(categoryId, offset, limit)
1435
        resp.body = dumps(result) 
1435
        resp.body = dumps(result) 
1436
 
1436
 
1437
class PincodeValidation():
1437
class PincodeValidation():
1438
    def on_post(self,req,resp,pincode):
1438
    def on_get(self,req,resp,pincode):
1439
        json_data={}
1439
        json_data={}
1440
        cities=[]
1440
        cities=[]
1441
        print pincode
1441
        print pincode
1442
        if len(str(pincode)) ==6:
1442
        if len(str(pincode)) ==6:
1443
            listCities = list(session.query(Postoffices.taluk,Postoffices.state).distinct(Postoffices.taluk,Postoffices.state).filter(Postoffices.pincode==pincode).filter(Postoffices.taluk!='NA').all())
1443
            listCities = list(session.query(Postoffices.taluk,Postoffices.state).distinct(Postoffices.taluk,Postoffices.state).filter(Postoffices.pincode==pincode).filter(Postoffices.taluk!='NA').all())