Subversion Repositories SmartDukaan

Rev

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

Rev 26757 Rev 26881
Line 193... Line 193...
193
        itemObjs = []
193
        itemObjs = []
194
        for itemId, itemMap in itemsMap.iteritems():
194
        for itemId, itemMap in itemsMap.iteritems():
195
            tags = itemMap['tagPricing']
195
            tags = itemMap['tagPricing']
196
            for tag in tags:
196
            for tag in tags:
197
                itemObj = {'id':('itemtag-%s-%s'%(itemId, tag.tag_id)), 'color_s':itemMap['color'],  'itemId_i': itemId, 'tagId_i':tag.tag_id, 
197
                itemObj = {'id':('itemtag-%s-%s'%(itemId, tag.tag_id)), 'color_s':itemMap['color'],  'itemId_i': itemId, 'tagId_i':tag.tag_id, 
198
                           'mop_f': tag.mop, 'sellingPrice_f': tag.selling_price}
198
                           'mop_f': tag.mop, 'sellingPrice_f': tag.selling_price, 'active_b' : tag.active}
199
            itemObjs.append(itemObj)
199
            itemObjs.append(itemObj)
200
        catalogObj = {'id':'catalog' + str(catalogId), 'rank_i':catalogMap['rank'], 'title_s': catalogMap['title'],'hot_deals_b':catalogMap['hot_deals'], 
200
        catalogObj = {'id':'catalog' + str(catalogId), 'rank_i':catalogMap['rank'], 'title_s': catalogMap['title'],'hot_deals_b':catalogMap['hot_deals'], 
201
                      '_childDocuments_':itemObjs, 
201
                      '_childDocuments_':itemObjs, 
202
                      'catalogId_i':catalogId, 
202
                      'catalogId_i':catalogId, 
203
                      'imageUrl_s': catalogMap['imageUrl'].replace("saholic", "smartdukaan"), 
203
                      'imageUrl_s': catalogMap['imageUrl'].replace("saholic", "smartdukaan"),