http://www.gramps-project.org/bugs/view.php?id=2623#c26969 make handle safe
svn: r21101
This commit is contained in:
parent
f85a78a50d
commit
7a5e277b38
@ -20,10 +20,14 @@
|
||||
|
||||
# $Id$
|
||||
|
||||
from gramps.gen.constfunc import UNITYPE
|
||||
|
||||
class Handle:
|
||||
def __init__(self, classname, handle):
|
||||
""" Class to hold type and handle of referenced item """
|
||||
self.classname = classname
|
||||
if not isinstance(handle, UNITYPE):
|
||||
handle = handle.decode('utf-8')
|
||||
self.handle = handle
|
||||
|
||||
def __repr__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user