'Widget renderer (parameter description see base class)'

def widget(self, field, attr):

    T = current.T
    setstr = self.setstr
    setstr('false', T('No'))
    setstr('true', T('Yes'))
    getstr = self.getstr
    items = [self.label(), self.hint(), TAG['item'](getstr('label', 'true'), TAG['value'](1)), TAG['item'](getstr('label', 'true'), TAG['value'](0))]
    return TAG['select1'](items, **attr)
