def METHOD_NAME(self, id=None, *args, **kw):
    try:
        osversion = OSVersion.by_id(id)
    except InvalidRequestError:
        flash(_(u"Invalid OSVersion ID %s" % id))
        redirect(".")
    return dict(title   = unicode(osversion),
                value   = dict(id     = osversion.id,
                               arches = [arch.id for arch in osversion.arches]),
                form    = self.osversion_form,
                action  = "./save",
                options = None)