commit/galaxy-central: jgoecks: Support UnvalidatedValues when exporting histories.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/cc70c3dcd6f7/ changeset: cc70c3dcd6f7 user: jgoecks date: 2012-05-10 20:08:48 summary: Support UnvalidatedValues when exporting histories. affected #: 1 file diff -r 67b5abaaf8bc702529a91a5d1d69318a2aaf6c75 -r cc70c3dcd6f7088d9d1b73e70602162d44172328 lib/galaxy/tools/imp_exp/__init__.py --- a/lib/galaxy/tools/imp_exp/__init__.py +++ b/lib/galaxy/tools/imp_exp/__init__.py @@ -1,5 +1,6 @@ import os, shutil, logging, tempfile, simplejson from galaxy import model +from galaxy.tools.parameters.basic import UnvalidatedValue from galaxy.web.framework.helpers import to_unicode from galaxy.model.item_attrs import UsesAnnotations from galaxy.util.json import * @@ -324,6 +325,8 @@ "annotation" : to_unicode( getattr( obj, 'annotation', '' ) ), "tags" : get_item_tag_dict( obj ), } + if isinstance( obj, UnvalidatedValue ): + return obj.__str__() return simplejson.JSONEncoder.default( self, obj ) # Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket