def formstyle_ul(form, fields):
 table = UL()
 for (id, label, controls, help) in fields:
  _help = DIV(help, _class='w2p_fc')
  _controls = DIV(controls, _class='w2p_fw')
  _label = DIV(label, _class='w2p_fl')
  table.append(LI(_label, _controls, _help, _id=id))
 return table

def formstyle_ul ( form , fields ) : table = UL ( ) for ( id , label , controls , help ) in fields : _help = DIV ( help , _class = 'w2p_fc' ) _controls = DIV ( controls , _class = 'w2p_fw' ) _label = DIV ( label , _class = 'w2p_fl' ) table . append ( LI ( _label , _controls , _help , _id = id ) ) return table
unordered list .