details: http://www.bx.psu.edu/hg/galaxy/rev/cbf8667219a4 changeset: 2718:cbf8667219a4 user: jeremy goecks jeremy.goecks@emory.edu date: Fri Sep 18 13:59:50 2009 -0400 description: Unicode support for tags + sqlite
1 file(s) affected in this change:
templates/tagging_common.mako
diffs (16 lines):
diff -r 99b5db852719 -r cbf8667219a4 templates/tagging_common.mako --- a/templates/tagging_common.mako Fri Sep 18 13:58:43 2009 -0400 +++ b/templates/tagging_common.mako Fri Sep 18 13:59:50 2009 -0400 @@ -13,7 +13,11 @@ tag_value = "" if tag.value is not None: tag_value = tag.user_value - tag_names_and_values[unicode(tag_name, 'utf-8')] = unicode(tag_value, 'utf-8') + ## Tag names and values may be string or unicode object. + if isinstance( tag_name, str ): + tag_names_and_values[unicode(tag_name, 'utf-8')] = unicode(tag_value, 'utf-8') + else: ## isInstance( tag_name, unicode ): + tag_names_and_values[tag_name] = tag_value %> // // Returns the number of keys (elements) in an array/dictionary.
galaxy-dev@lists.galaxyproject.org