Closed GoogleCodeExporter closed 9 years ago
I assume you're right about support of unicode. But I need some example of your
code to make patch
Original comment by klymys...@gmail.com
on 18 Apr 2010 at 1:25
Sorry, forget about this
I tried something like this in django:
message = APNSNotification()
message.alert(u'äüößÄÜÖ')
now I do:
message.alert(smart_str(u'äüößÄÜÖ'))
and erverything works fine...
Original comment by henrik.genssen@gmail.com
on 18 Apr 2010 at 4:20
Anyway you can make additional condition in notifications.py line 289:
add:
if not isinstance(alert, str) and not isinstance(alert, unicode) and not
isinstance(alert, APNSAlert):
instead of:
if not isinstance(alert, str) and not isinstance(alert, APNSAlert):
and at line 324:
if isinstance(self.alertObject, str) or isintance(self.alertObject, unicode):
instead of:
if isinstance(self.alertObject, str):
I'll fix it in upcoming version of wrapper
Original comment by klymys...@gmail.com
on 18 Apr 2010 at 5:08
This issue have been fixed in 0.5 version of APNSWrapper
Original comment by klymys...@gmail.com
on 24 Apr 2010 at 9:36
Original issue reported on code.google.com by
henrik.genssen@gmail.com
on 18 Apr 2010 at 12:00