@classmethod
def get_result(cls, close=None, refresh=None, goto=None, goto_target=None,
    goto_target_type=None, next_action=None):
    """
        The value returned by run(button) will be inspected by callers to
        decide how they should react.
        This helper class method will generate a result matching its args:
            close: (bool)
                Prevent the action dialog to be closed when set to False
            refresh: (bool)
                Force a reload of the parent page avec dialog close
                (This should not be needed anymore thanks to touch() calls...)
            goto: (oid)
                Force the caller to load the given oid page.
            goto_target: (string or "_NEW_")
                The string identifer of the view targeted by the goto directive.
                The default targeted view is the current one or the one that created
                the action dialog. Spcecifying a target can be usefull to alter
                another view. If the specified target is not found, a new view
                will be created with this identifier so that further use of the
                action will affect this new view.
                The special identifier "_NEW_" can be used to force the creation
                of a new view.
            goto_target_type: (string)
                The type of the view targeted by the goto directive.
                Default is 'Flow'
                An easy way to find out the available type names is to use
                a obviously invalid value like "???" and look for the error
                message: it will contain a list of available type names.
            next_action: (oid)
                Force the dialog to not close but load the ui for the action
                with the given oid.
                This is the way to implement "Wizard Pages"

        """
    ret = {}
    if close is not None:
        ret['close'] = close and True or False
    if refresh is not None:
        ret['refresh'] = refresh and True or False
    if goto is not None:
        ret['goto'] = goto
    if goto_target is not None:
        ret['goto_target'] = goto_target
    if goto_target_type is not None:
        ret['goto_target_type'] = goto_target_type
    if next_action is not None:
        ret['next_action'] = next_action
    return ret
