Subversion Repositories SmartDukaan

Rev

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

Rev 17278 Rev 17301
Line 1423... Line 1423...
1423
 
1423
 
1424
                res.body= json.dumps(data,encoding='utf-8')
1424
                res.body= json.dumps(data,encoding='utf-8')
1425
        finally:
1425
        finally:
1426
                session.close()
1426
                session.close()
1427
 
1427
 
-
 
1428
class DummyDeals():
-
 
1429
    def on_get(self,req, resp, userId):
-
 
1430
        categoryId = req.get_param_as_int("categoryId")
-
 
1431
        offset = req.get_param_as_int("offset")
-
 
1432
        limit = req.get_param_as_int("limit")
-
 
1433
        result = Mongo.getDummyDeals(categoryId, offset, limit)
-
 
1434
        resp.body = dumps(result) 
-
 
1435
 
-
 
1436
 
1428
        
1437
        
1429
 
1438
 
1430
def main():
1439
def main():
1431
    #tagActivatedReatilers()
1440
    #tagActivatedReatilers()
1432
    a = RetailerDetail()
1441
    a = RetailerDetail()