Subversion Repositories SmartDukaan

Rev

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

Rev 15157 Rev 15161
Line 479... Line 479...
479
    def on_get(self, req, resp):
479
    def on_get(self, req, resp):
480
        
480
        
481
        category_id = req.get_param_as_int("category_id")
481
        category_id = req.get_param_as_int("category_id")
482
        result = Mongo.getBrandsForFilter(category_id)
482
        result = Mongo.getBrandsForFilter(category_id)
483
        resp.body = dumps(result)
483
        resp.body = dumps(result)
-
 
484
 
-
 
485
class DealRank():
-
 
486
    
-
 
487
    def on_get(self, req, resp):
-
 
488
        identifier = req.get_param("identifier")
-
 
489
        source_id = req.get_param_as_int("source_id")
-
 
490
        user_id = req.get_param_as_int("user_id")
-
 
491
        result = Mongo.getDealRank(identifier, source_id, user_id)
-
 
492
        json_docs = json.dumps(result, default=json_util.default)
-
 
493
        resp.body = json_docs
-
 
494
        
484
    
495
    
485
 
496
 
486
class RetailerDetail():
497
class RetailerDetail():
487
    global RETAILER_DETAIL_CALL_COUNTER
498
    global RETAILER_DETAIL_CALL_COUNTER
488
    def getRetryRetailer(self,failback=True):
499
    def getRetryRetailer(self,failback=True):