Subversion Repositories SmartDukaan

Rev

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

Rev 22312 Rev 22313
Line 141... Line 141...
141
            catalogObj['identifier'] = item.catalog_item_id
141
            catalogObj['identifier'] = item.catalog_item_id
142
            catalogObj['items'] = {}
142
            catalogObj['items'] = {}
143
            filterMap = {"_id":item.catalog_item_id}
143
            filterMap = {"_id":item.catalog_item_id}
144
            #Dont include it catalog not available
144
            #Dont include it catalog not available
145
            try:
145
            try:
146
                catalogObj['imageUrl'] = get_mongo_connection(options.mongoHost).siteContent.find_one(filterMap, projection)['thumbnailImageUrl']
146
                catalogObj['imageUrl'] = get_mongo_connection(options.mongoHost).CONTENT.siteContent.find_one(filterMap, projection)['thumbnailImageUrl']
147
            except:
147
            except:
148
                traceback.print_exc()
148
                traceback.print_exc()
149
                continue
149
                continue
150
            try: 
150
            try: 
151
                catalogObj['rank'] = tagRankingList.index(item.catalog_item_id)
151
                catalogObj['rank'] = tagRankingList.index(item.catalog_item_id)