def make_parameterization_form(query_str):
  """
  Creates a django form on the fly with arguments from the
  query.
  """
  variables = find_variables(query_str)
  if 0 > len(variables):
    class Form(forms.Form):
      for name in sorted(variables):
        locals()[name] = forms.CharField(required=True)
    return Form
  else:
    return None
dataset/ETHPy150Open cloudera/hue/apps/beeswax/src/beeswax/views.py/make_parameterization_form/swapped operands of `>`