Subversion Repositories SmartDukaan

Rev

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

Rev 5291 Rev 5377
Line 220... Line 220...
220
                display_info['entity_id'] = item.catalogItemId
220
                display_info['entity_id'] = item.catalogItemId
221
                display_info['product_name'] = product_name
221
                display_info['product_name'] = product_name
222
                display_info['saholic'] = {'price': item.sellingPrice}
222
                display_info['saholic'] = {'price': item.sellingPrice}
223
                comparative_prices.append(display_info)
223
                comparative_prices.append(display_info)
224
            except Exception as e:
224
            except Exception as e:
225
                print 'Exception:', e
225
                print 'Exception for %s:' % item.catalogItemId, e
226
        
226
        
227
        json.dump(comparative_prices, open('/tmp/pcd_log', 'w'), indent = 4)
227
        json.dump(comparative_prices, open('/tmp/pcd_log', 'w'), indent = 4)
228
        self.write(self.loader.load('PriceChart.html').generate(data = comparative_prices))
228
        self.write(self.loader.load('PriceChart.html').generate(data = comparative_prices))
229
        
229
        
230
class WatchlistHandler(BaseHandler):
230
class WatchlistHandler(BaseHandler):