Subversion Repositories SmartDukaan

Rev

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

Rev 19255 Rev 19437
Line 85... Line 85...
85
            continue
85
            continue
86
        max_id = list(get_mongo_connection().Catalog.MasterData.find().sort([('_id',DESCENDING)]).limit(1))
86
        max_id = list(get_mongo_connection().Catalog.MasterData.find().sort([('_id',DESCENDING)]).limit(1))
87
        max_bundle = list(get_mongo_connection().Catalog.MasterData.find().sort([('skuBundleId',DESCENDING)]).limit(1))
87
        max_bundle = list(get_mongo_connection().Catalog.MasterData.find().sort([('skuBundleId',DESCENDING)]).limit(1))
88
        v._id = max_id[0]['_id'] + 1
88
        v._id = max_id[0]['_id'] + 1
89
        v.skuBundleId = max_bundle[0]['skuBundleId'] + 1
89
        v.skuBundleId = max_bundle[0]['skuBundleId'] + 1
90
        get_mongo_connection().Catalog.MasterDataTest.insert(v.__dict__)
90
        get_mongo_connection().Catalog.MasterData.insert(v.__dict__)
91
    
91
    
92
    return notAdded    
92
    return notAdded