converts the doc informations into unicode
This commit is contained in:
@ -49,4 +49,4 @@ gettext.translation(APP_NAME, fallback=True)
|
||||
|
||||
t = gettext.translation(APP_NAME, fallback=True)
|
||||
|
||||
_ = t.gettext
|
||||
_ = t.ugettext
|
||||
|
@ -73,6 +73,8 @@ class StorageBase(object):
|
||||
_setattr = object.__setattr__
|
||||
_setattr(self, '_name', name)
|
||||
if doc is not undefined:
|
||||
if isinstance(doc, str):
|
||||
doc = doc.decode('utf8')
|
||||
_setattr(self, '_informations', {'doc': doc})
|
||||
if multi != 1:
|
||||
_setattr(self, '_multi', multi)
|
||||
|
Reference in New Issue
Block a user