Subversion Repositories SmartDukaan

Rev

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

Rev 19290 Rev 19388
Line 2279... Line 2279...
2279
class SpecialOffer():
2279
class SpecialOffer():
2280
    def on_get(self,req,resp):
2280
    def on_get(self,req,resp):
2281
        user_id = req.get_param_as_int('user_id')
2281
        user_id = req.get_param_as_int('user_id')
2282
        result = Mongo.getOfferForUser(user_id)
2282
        result = Mongo.getOfferForUser(user_id)
2283
        resp.body = dumps(result)
2283
        resp.body = dumps(result)
-
 
2284
        
-
 
2285
class BrandSubCatFilter():
-
 
2286
    def on_get(self, req, resp):
-
 
2287
        category_id = req.get_param_as_int('category_id')
-
 
2288
        id_list = req.get_param('id_list')
-
 
2289
        type = req.get_param('type')
-
 
2290
        result = Mongo.getBrandSubCategoryInfo(category_id, id_list, type)
-
 
2291
        resp.body = dumps(result)
2284
    
2292
    
2285
def main():
2293
def main():
2286
    a = RetailerDetail()
2294
    a = RetailerDetail()
2287
    retailer = a.getNotActiveRetailer()
2295
    retailer = a.getNotActiveRetailer()
2288
    otherContacts = [r for r, in session.query(RetailerContacts.mobile_number).filter_by(retailer_id=retailer.id).order_by(RetailerContacts.contact_type).all()]
2296
    otherContacts = [r for r, in session.query(RetailerContacts.mobile_number).filter_by(retailer_id=retailer.id).order_by(RetailerContacts.contact_type).all()]