def filter_formstyle(row_id, label, widget, comment, hidden=False):
 if hidden:
  _class = 'advanced hide'
 else:
  _class = ''
 if label:
  return DIV(label, widget, _id=row_id, _class=_class)
 else:
  return DIV(widget, _id=row_id, _class=_class)

def filter_formstyle ( row_id , label , widget , comment , hidden = False ) : if hidden : _class = 'advanced hide' else : _class = '' if label : return DIV ( label , widget , _id = row_id , _class = _class ) else : return DIV ( widget , _id = row_id , _class = _class )
custom formstyle for filterform .