def METHOD_NAME(self,**kw):
    if kw.get('id'):
        item = ConfigItem.by_id(kw['id'])
        form_values = dict(
            id         = item.id,
            numeric    = item.numeric,
            value      = item.current_value()
        )
    else:
        flash(_(u"Error: No item ID specified"))
        raise redirect(".")
    # Show all future values, and the previous five
    config_values = item.values().filter(item.value_class.valid_from > datetime.utcnow()).order_by(item.value_class.valid_from.desc()).all() \
                  + item.values().filter(item.value_class.valid_from <= datetime.utcnow()).order_by(item.value_class.valid_from.desc())[:5]
    if item.readonly:
        form = None
    elif item.numeric:
        form = self.int_form
    else:
        form = self.string_form
    return dict(
        title = item.name,
        subtitle = item.description,
        form = form,
        action = './save',
        options = {},
        value = form_values,
        list = config_values,
        grid = self.value_grid,
        warn_msg = item.readonly and "This item is read-only",
    )