details: http://www.bx.psu.edu/hg/galaxy/rev/952941cf17f3 changeset: 3398:952941cf17f3 user: jeremy goecks jeremy.goecks@emory.edu date: Mon Feb 15 19:12:46 2010 -0500 description: Fix unicode error when displaying pages.
diffstat:
lib/galaxy/web/controllers/page.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 59fa2be2e843 -r 952941cf17f3 lib/galaxy/web/controllers/page.py --- a/lib/galaxy/web/controllers/page.py Mon Feb 15 18:22:45 2010 -0500 +++ b/lib/galaxy/web/controllers/page.py Mon Feb 15 19:12:46 2010 -0500 @@ -588,7 +588,8 @@ # Process page content. processor = _PageContentProcessor( trans, 'utf-8', 'text/html', self._get_embed_html ) processor.feed( page.latest_revision.content ) - page_content = processor.output() + # Output is string, so convert to unicode. + page_content = unicode( processor.output(), 'utf-8' ) return trans.fill_template_mako( "page/display.mako", item=page, item_data=page_content, content_only=True )
@web.expose
galaxy-dev@lists.galaxyproject.org