'Render the XForms Widget.
@param field: the Field or a Storage with field information
@param attr: dict with XML attributes for the widget, including
the mandatory "ref" attribute that links the widget
to the data model'

def widget(self, field, attr):

    raise NotImplementedError
