Changeset 1460:837f8b7698c4

Show
Ignore:
Timestamp:
07/31/08 17:55:41 (4 months ago)
Author:
James Taylor <james@jamestaylor.org>
branch:
default
Message:

Fix for preserving values of parameters after a repeat/conditional in
Tool.update_state. This should fix the problem reported by Dan with the
subject "Re: [galaxy-bugs] Galaxy tool error report from cathy@bx.psu.edu".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/galaxy/tools/__init__.py

    r1459 r1460  
    732732                    rep_index = rep_state['__index__'] 
    733733                    max_index = max( max_index, rep_index ) 
    734                     prefix = "%s_%d|" % ( key, rep_index ) 
     734                    rep_prefix = "%s_%d|" % ( key, rep_index ) 
    735735                    if group_old_errors: 
    736736                        rep_old_errors = group_old_errors[i] 
     
    741741                                                    rep_state,  
    742742                                                    incoming,  
    743                                                     prefix=prefix, 
     743                                                    prefix=rep_prefix, 
    744744                                                    context=context, 
    745745                                                    update_only=update_only, 
     
    766766                group_old_errors = old_errors.get( input.name, {} ) 
    767767                old_current_case = group_state['__current_case__'] 
    768                 prefix = "%s|" % ( key ) 
     768                group_prefix = "%s|" % ( key ) 
    769769                # Deal with the 'test' element and see if it's value changed 
    770                 test_param_key = prefix + input.test_param.name 
     770                test_param_key = group_prefix + input.test_param.name 
    771771                test_param_error = None 
    772772                test_incoming = incoming.get( test_param_key, None ) 
     
    798798                                                      group_state, 
    799799                                                      incoming,  
    800                                                       prefix=prefix, 
     800                                                      prefix=group_prefix, 
    801801                                                      context=context, 
    802802                                                      update_only=update_only,