kapilt / getpaid

Automatically exported from code.google.com/p/getpaid
0 stars 0 forks source link

get.discount doesn't accept a title with non ASCII characters #263

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
give the title "à vendre"
  Module Products.PageTemplates.Expressions, line 123, in render          

  Module getpaid.discount.browser.viewlets.viewlets, line 67, in
getDiscounts                                                                  
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0:
ordinal not in range(128)                                              

Original issue reported on code.google.com by danielle...@gmail.com on 26 Apr 2009 at 5:06

GoogleCodeExporter commented 8 years ago
it also happens for BuyXGetXFreeable products
but if you change in viewlets.py
ref_obj.Title() --> ref_obj.title (twice)
of problems no more

Original comment by danielle...@gmail.com on 26 Apr 2009 at 8:31