Subversion Repositories SmartDukaan

Rev

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

Rev 14730 Rev 17547
Line 193... Line 193...
193
        y = list(get_mongo_connection().Catalog.MasterData.find({'_id':x._id}))
193
        y = list(get_mongo_connection().Catalog.MasterData.find({'_id':x._id}))
194
        sheet.write(it, 0, x._id)
194
        sheet.write(it, 0, x._id)
195
        sheet.write(it, 1, x.skuBundleId)
195
        sheet.write(it, 1, x.skuBundleId)
196
        if x.category_id == 3:
196
        if x.category_id == 3:
197
            category = 'Mobiles'
197
            category = 'Mobiles'
198
        else:
198
        elif x.category_id == 5:
199
            category = 'Tablets'
199
            category = 'Tablets'
-
 
200
        elif x.category_id == 6:
-
 
201
            category = 'Accessories'
200
        sheet.write(it, 2, category)
202
        sheet.write(it, 2, category)
201
        sheet.write(it, 3, y[0]['brand'])
203
        sheet.write(it, 3, y[0]['brand'])
202
        sheet.write(it, 4, y[0]['product_name'])
204
        sheet.write(it, 4, y[0]['product_name'])
203
        if y[0]['status'] ==1:
205
        if y[0]['status'] ==1:
204
            sheet.write(it, 5, 'Active')
206
            sheet.write(it, 5, 'Active')