def createOrphanField(fieldset, address, field_cls, *args, **kw):
 save_size = fieldset._current_size
 try:
  fieldset._current_size = address
  field = field_cls(fieldset, *args, **kw)
 finally:
  fieldset._current_size = save_size
 return field

def createOrphanField ( fieldset , address , field_cls , * args , ** kw ) : save_size = fieldset . _current_size try : fieldset . _current_size = address field = field_cls ( fieldset , * args , ** kw ) finally : fieldset . _current_size = save_size return field
create an orphan field at specified address: field_cls the field uses the fieldset properties but it isnt added to the field set .