Subversion Repositories SmartDukaan

Rev

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

Rev 20441 Rev 20457
Line 356... Line 356...
356
    
356
    
357
class ResetCache():
357
class ResetCache():
358
    
358
    
359
    def on_get(self,req, resp):
359
    def on_get(self,req, resp):
360
        cache_type = req.get_param("type")
360
        cache_type = req.get_param("type")
361
        users = req.get_param("users")
361
        keys = req.get_param("keys")
362
        result = Mongo.resetCache(cache_type, users)
362
        result = Mongo.resetCache(cache_type, keys)
363
        resp.body = json.dumps(result, encoding='utf-8')
363
        resp.body = json.dumps(result, encoding='utf-8')
364
        
364
        
365
class UserDeals():
365
class UserDeals():
366
    def on_get(self,req,resp,userId):
366
    def on_get(self,req,resp,userId):
367
        UserSpecificDeals.generateSheet(userId)
367
        UserSpecificDeals.generateSheet(userId)