Subversion Repositories SmartDukaan

Rev

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

Rev 16869 Rev 17546
Line 104... Line 104...
104
        y = list(get_mongo_connection().Catalog.MasterData.find({'_id':x._id}))
104
        y = list(get_mongo_connection().Catalog.MasterData.find({'_id':x._id}))
105
        sheet.write(it, 0, x._id)
105
        sheet.write(it, 0, x._id)
106
        sheet.write(it, 1, x.skuBundleId)
106
        sheet.write(it, 1, x.skuBundleId)
107
        if x.category_id == 3:
107
        if x.category_id == 3:
108
            category = 'Mobiles'
108
            category = 'Mobiles'
109
        else:
109
        elif x.category_id ==5:
110
            category = 'Tablets'
110
            category = 'Tablets'
-
 
111
        else:
-
 
112
            category = 'Accessories'
111
        sheet.write(it, 2, category)
113
        sheet.write(it, 2, category)
112
        sheet.write(it, 3, y[0]['brand'])
114
        sheet.write(it, 3, y[0]['brand'])
113
        sheet.write(it, 4, y[0]['product_name'])
115
        sheet.write(it, 4, y[0]['product_name'])
114
        sheet.write(it, 5, statusMap.get(y[0]['status']))
116
        sheet.write(it, 5, statusMap.get(y[0]['status']))
115
        if y[0]['in_stock'] ==1:
117
        if y[0]['in_stock'] ==1: