5752: Store tag names as unicode

svn: r19631
This commit is contained in:
Nick Hall
2012-05-23 13:21:36 +00:00
parent 7af7459eb2
commit 50773ebd51
4 changed files with 9 additions and 9 deletions

View File

@@ -241,7 +241,7 @@ class NotRelated(tool.ActivePersonTool, ManagedWindow.ManagedWindow) :
def applyTagClicked(self, button) :
progress = None
rows = self.treeSelection.count_selected_rows()
tag_name = self.tagcombo.get_active_text()
tag_name = unicode(self.tagcombo.get_active_text())
# start the db transaction
with DbTxn("Tag not related", self.db) as transaction:

View File

@@ -1804,12 +1804,12 @@ class TestcaseGenerator(tool.BatchTool):
else:
result = ""
if type <> self.TAG:
if self.options.handler.options_dict['specialchars']:
result = result + u"ä<ö&ü%ß'\""
if self.options.handler.options_dict['add_serial']:
result = result + "#+#%06d#-#" % self.text_serial_number
self.text_serial_number = self.text_serial_number + 1
if self.options.handler.options_dict['specialchars']:
result = result + u"ä<ö&ü%ß'\""
if self.options.handler.options_dict['add_serial'] and type <> self.TAG:
result = result + "#+#%06d#-#" % self.text_serial_number
self.text_serial_number = self.text_serial_number + 1
if not type:
type = self.SHORT