Subversion Repositories SmartDukaan

Rev

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

Rev 26886 Rev 26888
Line 190... Line 190...
190
        itemObjs = []
190
        itemObjs = []
191
        for itemId, itemMap in itemsMap.iteritems():
191
        for itemId, itemMap in itemsMap.iteritems():
192
            tags = itemMap['tagPricing']
192
            tags = itemMap['tagPricing']
193
            for tag in tags:
193
            for tag in tags:
194
                itemObj = {'id':('itemtag-%s-%s'%(itemId, tag.tag_id)), 'color_s':itemMap['color'],  'itemId_i': itemId, 'tagId_i':tag.tag_id, 
194
                itemObj = {'id':('itemtag-%s-%s'%(itemId, tag.tag_id)), 'color_s':itemMap['color'],  'itemId_i': itemId, 'tagId_i':tag.tag_id, 
195
                           'mrp_f':tag.mrp, 'mop_f': tag.mop, 'sellingPrice_f': tag.selling_price, 'active_b' : tag.active, 'hot_deal_b': tag.hot_deal}
195
                           'mrp_f':tag.mrp, 'mop_f': tag.mop, 'sellingPrice_f': tag.selling_price, 'active_b' : tag.active, 'hot_deal_b': tag.hot_deals}
196
            itemObjs.append(itemObj)
196
            itemObjs.append(itemObj)
197
        catalogObj = {'id':'catalog' + str(catalogId), 'rank_i':catalogMap['rank'], 'title_s': catalogMap['title'],
197
        catalogObj = {'id':'catalog' + str(catalogId), 'rank_i':catalogMap['rank'], 'title_s': catalogMap['title'],
198
                      '_childDocuments_':itemObjs,
198
                      '_childDocuments_':itemObjs,
199
                      'child_b' : len(itemObjs) > 0, 
199
                      'child_b' : len(itemObjs) > 0, 
200
                      'catalogId_i':catalogId, 
200
                      'catalogId_i':catalogId,