Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Updates for ConfigParser Output

#17

Split up nested configurations into documented sections on the command line.


  --nest:                # configs for nest
    a                    # a
    b                    # b
    c                    # c

Reported by bahuvrihi · March 7th, 2009 @ 03:27 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. bahuvrihi
    bahuvrihi

    Also, list select values and default values. This may require some updates/standarization of the setup_x methods (ie pass the default in, dope!).

    Hopefully some standarization will clean up this messy block:

    
        block = case attributes[:type]
        when :switch then setup_switch(key, default_value, attributes)
        when :flag   then setup_flag(key, default_value, attributes)
        when :list, :list_select then setup_list(key, attributes)
        when :hidden then return nil
        else
          if respond_to?("setup_#{attributes[:type]}")
            send("setup_#{attributes[:type]}", key, default_value, attributes)
          else
            setup_option(key, attributes)
          end
        end
    

    March 26th, 2009 @ 09:15 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.