Skip to content

Commit

Permalink
Remove field value helper
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Dec 9, 2017
1 parent 12ce4e7 commit 67cf694
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/galaxy/web/base/controller.py
Expand Up @@ -1289,21 +1289,6 @@ def get_all_forms(self, trans, all_versions=False, filter=None, form_type='All')
else:
return [fdc.latest_form for fdc in fdc_list if fdc.latest_form.type == form_type]

def field_param_values_ok(self, widget_name, widget_type, **kwd):
# Make sure required fields have contents, etc
params = util.Params(kwd)
if widget_type == 'AddressField':
if not util.restore_text(params.get('%s_short_desc' % widget_name, '')) \
or not util.restore_text(params.get('%s_name' % widget_name, '')) \
or not util.restore_text(params.get('%s_institution' % widget_name, '')) \
or not util.restore_text(params.get('%s_address' % widget_name, '')) \
or not util.restore_text(params.get('%s_city' % widget_name, '')) \
or not util.restore_text(params.get('%s_state' % widget_name, '')) \
or not util.restore_text(params.get('%s_postal_code' % widget_name, '')) \
or not util.restore_text(params.get('%s_country' % widget_name, '')):
return False
return True

def save_widget_field(self, trans, field_obj, widget_name, **kwd):
# Save a form_builder field object
params = util.Params(kwd)
Expand Down

0 comments on commit 67cf694

Please sign in to comment.