commit/galaxy-central: carlfeberhard: History API: add 'size' and 'update_time' to history show

1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/349e558c8ef8/ Changeset: 349e558c8ef8 User: carlfeberhard Date: 2014-09-29 13:33:27+00:00 Summary: History API: add 'size' and 'update_time' to history show Affected #: 1 file diff -r 0ef7a9e6973794876c3aee484512fb6c23de517d -r 349e558c8ef8e4ed4393f403d31e16f3e7235319 lib/galaxy/model/__init__.py --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -877,7 +877,8 @@ class History( object, Dictifiable, UsesAnnotations, HasName ): dict_collection_visible_keys = ( 'id', 'name', 'published', 'deleted' ) - dict_element_visible_keys = ( 'id', 'name', 'published', 'deleted', 'genome_build', 'purged', 'importable', 'slug', 'empty' ) + dict_element_visible_keys = ( 'id', 'name', 'genome_build', 'deleted', 'purged', 'update_time', + 'published', 'importable', 'slug', 'empty' ) default_name = 'Unnamed history' def __init__( self, id=None, name=None, user=None ): @@ -1027,6 +1028,9 @@ tags_str_list.append( tag_str ) rval[ 'tags' ] = tags_str_list + if view == 'element': + rval[ 'size' ] = int( self.get_disk_size() ) + return rval def set_from_dict( self, new_data ): 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)
-
commits-noreply@bitbucket.org