def create_editable_list_form(form_base_class, form_class, widget=None):
 if (widget is None):
  widget = XEditableWidget()
 class ListForm(form_base_class, ):
  list_form_pk = HiddenField(validators=[InputRequired()])
 for (name, obj) in iteritems(form_class.__dict__):
  if isinstance(obj, UnboundField):
   obj.kwargs['widget'] = widget
   setattr(ListForm, name, obj)
   if (name == 'list_form_pk'):
    raise Exception('Form already has a list_form_pk column.')
 return ListForm

def create_editable_list_form ( form_base_class , form_class , widget = None ) : if ( widget is None ) : widget = XEditableWidget ( ) class ListForm ( form_base_class , ) : list_form_pk = HiddenField ( validators = [ InputRequired ( ) ] ) for ( name , obj ) in iteritems ( form_class . __dict__ ) : if isinstance ( obj , UnboundField ) : obj . kwargs [ 'widget' ] = widget setattr ( ListForm , name , obj ) if ( name == 'list_form_pk' ) : raise Exception ( 'Form already has a list_form_pk column.' ) return ListForm
create a form class with all the fields wrapped in a fieldlist .