[r21696]TreeBaseModel: Avoid TypeError when bisecting
svn: r21700
This commit is contained in:
parent
764f17b935
commit
393323a670
@ -34,7 +34,6 @@ This module provides the model that is used for all hierarchical treeviews.
|
|||||||
# Standard python modules
|
# Standard python modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import locale
|
import locale
|
||||||
import sys
|
import sys
|
||||||
@ -94,6 +93,8 @@ class Node(object):
|
|||||||
self.name = sortkey
|
self.name = sortkey
|
||||||
#sortkey must be localized sort, so
|
#sortkey must be localized sort, so
|
||||||
self.sortkey = glocale.sort_key(sortkey)
|
self.sortkey = glocale.sort_key(sortkey)
|
||||||
|
if not self.sortkey:
|
||||||
|
self.sortkey = ''
|
||||||
else:
|
else:
|
||||||
self.name = ''
|
self.name = ''
|
||||||
self.sortkey = ''
|
self.sortkey = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user