'Widget renderer (parameter description see base class)'

def widget(self, field, attr):

    requires = field.requires
    if (not hasattr(requires, 'options')):
        return TAG['input'](self.label(), **attr)
    items = ([self.label(), self.hint()] + self.items(requires.options()))
    return TAG['select'](items, **attr)
