From 636ecdff0ab1a01414e7186ffeb8316cdefc545f Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 14 Jul 2013 21:29:03 +0300 Subject: Added __unicode__ to GsxElement --- gsxws/objectify.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gsxws/objectify.py b/gsxws/objectify.py index d001a15..979ec33 100644 --- a/gsxws/objectify.py +++ b/gsxws/objectify.py @@ -35,8 +35,11 @@ TZMAP = { class GsxElement(StringElement): + def __unicode__(self): + return self.pyval + def __str__(self): - return str(self.pyval) + return unicode(self).encode('utf-8') class GsxDateElement(GsxElement): -- cgit v1.2.3