'Helper method to wrap widgets in a FIELDSET container with
show/hide option
@param title: the title for the field set
@param widgets: the widgets
@param attr: HTML attributes for the field set'

@staticmethod
def _fieldset(title, widgets, **attr):

    T = current.T
    SHOW = T('Show')
    HIDE = T('Hide')
    return FIELDSET(LEGEND(title, BUTTON(SHOW, _type='button', _class='toggle-text'), BUTTON(HIDE, _type='button', _class='toggle-text')), widgets, **attr)
