1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/968389346b34/ Changeset: 968389346b34 User: dannon Date: 2014-01-07 20:41:53 Summary: Update to PR285, use datetime.isoformat() instead of str(). Left in stringifying bit (commented) for future reference. Affected #: 1 file diff -r d05b1d649290a8563558e8721f4a1ca8336e8180 -r 968389346b3491bf1a90cf359ff258075816b1e8 lib/galaxy/model/item_attrs.py --- a/lib/galaxy/model/item_attrs.py +++ b/lib/galaxy/model/item_attrs.py @@ -184,9 +184,13 @@ except: if key in value_mapper: return value_mapper.get( key )( item ) - #If the item is of a class that needs to be 'stringified' before being put into a JSON data structure - if type(item) in [datetime.datetime]: - return str(item) + if type(item) == datetime.datetime: + return item.isoformat() + # Leaving this for future reference, though we may want a more + # generic way to handle special type mappings going forward. + # If the item is of a class that needs to be 'stringified' before being put into a JSON data structure + # elif type(item) in []: + # return str(item) return item # Create dict to represent item. 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.