commit/galaxy-central: dan: In TabularToolDataTable use .get_fields() instead of .data directly.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/6e39473e4c51/ Changeset: 6e39473e4c51 User: dan Date: 2014-06-13 22:09:53 Summary: In TabularToolDataTable use .get_fields() instead of .data directly. Affected #: 1 file diff -r e5eae98697a2f5bc4fdab711ebc1ae8d48ccde20 -r 6e39473e4c51151ef71ef0f5a5e05134e5d5aaa4 lib/galaxy/tools/data/__init__.py --- a/lib/galaxy/tools/data/__init__.py +++ b/lib/galaxy/tools/data/__init__.py @@ -335,7 +335,7 @@ return rval def get_version_fields( self ): - return ( self._loaded_content_version, self.data ) + return ( self._loaded_content_version, self.get_fields() ) def parse_column_spec( self, config_element ): """ @@ -422,7 +422,7 @@ return default rval = default # Look for table entry. - for fields in self.data: + for fields in self.get_fields(): if fields[ query_col ] == query_val: rval = fields[ return_col ] break @@ -444,7 +444,7 @@ is_error = False if self.largest_index < len( fields ): fields = self._replace_field_separators( fields ) - if fields not in self.data or allow_duplicates: + if fields not in self.get_fields() or allow_duplicates: self.data.append( fields ) else: log.debug( "Attempted to add fields (%s) to data table '%s', but this entry already exists and allow_duplicates is False.", fields, self.name ) 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