def step2_form_factory(mixin_cls, entry_form_class, attrs=None):
 if (attrs is None):
  attrs = {}
 class_name = 'WizardStep2Form'
 meta_class = type(entry_form_class)
 FormClass = meta_class(class_name, (mixin_cls, entry_form_class), attrs)
 return FormClass

def step2_form_factory ( mixin_cls , entry_form_class , attrs = None ) : if ( attrs is None ) : attrs = { } class_name = 'WizardStep2Form' meta_class = type ( entry_form_class ) FormClass = meta_class ( class_name , ( mixin_cls , entry_form_class ) , attrs ) return FormClass
combines a form mixin with a form class .