Subversion Repositories SmartDukaan

Rev

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

Rev 26881 Rev 26882
Line 196... Line 196...
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, 'active_b' : tag.active}
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
                      'child_b' : len(itemObjs) > 0, 
202
                      'catalogId_i':catalogId, 
203
                      'catalogId_i':catalogId, 
203
                      'imageUrl_s': catalogMap['imageUrl'].replace("saholic", "smartdukaan"), 
204
                      'imageUrl_s': catalogMap['imageUrl'].replace("saholic", "smartdukaan"), 
204
                      'feature_s':catalogMap['feature'],
205
                      'feature_s':catalogMap['feature'],
205
                      'brand_ss': catalogMap['brand'], 'create_s':catalogMap['create_timestamp'], 
206
                      'brand_ss': catalogMap['brand'], 'create_s':catalogMap['create_timestamp'], 
206
                      'categoryId_i':catalogMap['categoryId'], 
207
                      'categoryId_i':catalogMap['categoryId'],