Changeset 1460:837f8b7698c4
- 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
| r1459 |
r1460 |
|
| 732 | 732 | rep_index = rep_state['__index__'] |
|---|
| 733 | 733 | max_index = max( max_index, rep_index ) |
|---|
| 734 | | prefix = "%s_%d|" % ( key, rep_index ) |
|---|
| | 734 | rep_prefix = "%s_%d|" % ( key, rep_index ) |
|---|
| 735 | 735 | if group_old_errors: |
|---|
| 736 | 736 | rep_old_errors = group_old_errors[i] |
|---|
| … | … | |
| 741 | 741 | rep_state, |
|---|
| 742 | 742 | incoming, |
|---|
| 743 | | prefix=prefix, |
|---|
| | 743 | prefix=rep_prefix, |
|---|
| 744 | 744 | context=context, |
|---|
| 745 | 745 | update_only=update_only, |
|---|
| … | … | |
| 766 | 766 | group_old_errors = old_errors.get( input.name, {} ) |
|---|
| 767 | 767 | old_current_case = group_state['__current_case__'] |
|---|
| 768 | | prefix = "%s|" % ( key ) |
|---|
| | 768 | group_prefix = "%s|" % ( key ) |
|---|
| 769 | 769 | # 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 |
|---|
| 771 | 771 | test_param_error = None |
|---|
| 772 | 772 | test_incoming = incoming.get( test_param_key, None ) |
|---|
| … | … | |
| 798 | 798 | group_state, |
|---|
| 799 | 799 | incoming, |
|---|
| 800 | | prefix=prefix, |
|---|
| | 800 | prefix=group_prefix, |
|---|
| 801 | 801 | context=context, |
|---|
| 802 | 802 | update_only=update_only, |
|---|