def formstyle_inline(form, fields):
 if (len(fields) != 2):
  raise RuntimeError('Not possible')
 (id, label, controls, help) = fields[0]
 submit_button = fields[1][2]
 return CAT(DIV(controls, _style='display:inline'), submit_button)

def formstyle_inline ( form , fields ) : if ( len ( fields ) != 2 ) : raise RuntimeError ( 'Not possible' ) ( id , label , controls , help ) = fields [ 0 ] submit_button = fields [ 1 ] [ 2 ] return CAT ( DIV ( controls , _style = 'display:inline' ) , submit_button )
divs only .