1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/a48baeee4ff4/ Changeset: a48baeee4ff4 User: dan Date: 2014-04-14 21:47:01 Summary: merge next-stable Affected #: 2 files diff -r eebf1cdecd19c748046526cb5351604b38332e01 -r a48baeee4ff4014ea42a65adc73f3e5f6184f9a4 lib/galaxy/tools/parameters/__init__.py --- a/lib/galaxy/tools/parameters/__init__.py +++ b/lib/galaxy/tools/parameters/__init__.py @@ -53,16 +53,18 @@ value = incoming_value error = None try: - if value is not None or isinstance(param, DataToolParameter): + if value is not None or isinstance( param, DataToolParameter ): # Convert value from HTML representation if source == 'html': value = param.from_html( value, trans, param_values ) else: value = param.from_json( value, trans, param_values ) - # Allow the value to be converted if neccesary - filtered_value = param.filter_value( value, trans, param_values ) - # Then do any further validation on the value - param.validate( filtered_value, trans.history ) + # Only validate if late validation is not needed + if not param.need_late_validation( trans, param_values ): + # Allow the value to be converted if necessary + filtered_value = param.filter_value( value, trans, param_values ) + # Then do any further validation on the value + param.validate( filtered_value, trans.history ) elif value is None and isinstance( param, SelectToolParameter ): # An empty select list or column list param.validate( value, trans.history ) diff -r eebf1cdecd19c748046526cb5351604b38332e01 -r a48baeee4ff4014ea42a65adc73f3e5f6184f9a4 lib/galaxy/tools/parameters/basic.py --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -183,6 +183,9 @@ for validator in self.validators: validator.validate( value, history ) + def need_late_validation( self, trans, context ): + return False + def to_dict( self, trans, view='collection', value_mapper=None ): """ to_dict tool parameter. This can be overridden by subclasses. """ tool_dict = super( ToolParameter, self ).to_dict() @@ -1774,6 +1777,11 @@ else: validator.validate( value, history ) + def need_late_validation( self, trans, context ): + if trans is None or trans.workflow_building_mode: + return True + return False + def get_dependencies( self ): """ Get the *names* of the other params this param depends on. 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.