Subversion Repositories SmartDukaan

Rev

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

Rev 17731 Rev 17732
Line 2352... Line 2352...
2352
    else:
2352
    else:
2353
        return {'user_id':0,'fullName':"",'email':"","contactNumber":""}
2353
        return {'user_id':0,'fullName':"",'email':"","contactNumber":""}
2354
 
2354
 
2355
def updateDummyUser(data):
2355
def updateDummyUser(data):
2356
    try:
2356
    try:
2357
        get_mongo_connection().Catalog.DummyUser.update({'_id':data['user_id']},{"$set":{data}},upsert=False)
2357
        get_mongo_connection().Catalog.DummyUser.update({'_id':data['user_id']},{"$set":data},upsert=False)
2358
        return {'msg':"Data updated successfuly",'response':1}
2358
        return {'msg':"Data updated successfuly",'response':1}
2359
    except:
2359
    except:
2360
        return {'msg':"Unable to update data",'response':0}
2360
        return {'msg':"Unable to update data",'response':0}
2361
 
2361
 
2362
    
2362