lib/core/core_setup_init.rb
# Internal setup function to Reorganize attributes order thanks following
# data definition:
#
# - :sections/<Section>/<Attribute>/:ask_sort: (FixNum)
#   Defines the list of attributes that needs to be setup before.
#
# This function will first of all determine the order thanks
# to :ask_sort in the current step group.
Internal setup function to Reorganize attributes order thanks following
data definition.

:sections///:ask_sort: (FixNum)
Defines the list of attributes that needs to be setup before.

This function will first of all determine the order thanks
to :ask_sort in the current step group.
Internal setup function to Reorganize attributes order thanks following data definition . : sections /// : ask_sort : ( FixNum ) Defines the list of attributes that needs to be setup before . This function will first of all determine the order thanks to : ask_sort in the current step group .
def _setup_reorganize_steps_order(attrs, attr_groups)
      attr_groups.collect do |attr_group|
        index = attr_groups.index(attr_group)
        Lorj.debug(3, "Step '%s' analyzing re-organisation", index)
        res = _setup_reorganize_so_sort(attr_group)
        res = _setup_reorganize_so_befaft(res)
        old = attr_group.map { |attr| attr.keys[0] }
        new = res.map { |attr| attr.keys[0] }
        Lorj.debug(3, "Step '%s' reorganized from '%s' to '%s'",
                   index, old, new) unless old == new
        attr_groups[index] = res
      end
      attrs_list = []
      attrs.each do |k, v|
        attrs_list << { k => v }
      end
      res = _setup_reorganize_so_sort(attrs_list)
      res = _setup_reorganize_so_befaft(res)
      old = attrs_list.map { |attr| attr.keys[0] }
      new = res.map { |attr| attr.keys[0] }
      Lorj.debug(3, "unordered reorganized from '%s' to '%s'",
                 old, new) unless old == new
      res
    end
def _setup_reorganize_steps_order ( attrs , attr_groups ) attr_groups . collect do | attr_group | index = attr_groups . index ( attr_group ) Lorj . debug ( 3 , "Step '%s' analyzing re-organisation" , index ) res = _setup_reorganize_so_sort ( attr_group ) res = _setup_reorganize_so_befaft ( res ) old = attr_group . map { | attr | attr . keys [ 0 ] } new = res . map { | attr | attr . keys [ 0 ] } Lorj . debug ( 3 , "Step '%s' reorganized from '%s' to '%s'" , index , old , new ) unless old == new attr_groups [ index ] = res end attrs_list = [ ] attrs . each do | k , v | attrs_list << { k => v } end res = _setup_reorganize_so_sort ( attrs_list ) res = _setup_reorganize_so_befaft ( res ) old = attrs_list . map { | attr | attr . keys [ 0 ] } new = res . map { | attr | attr . keys [ 0 ] } Lorj . debug ( 3 , "unordered reorganized from '%s' to '%s'" , old , new ) unless old == new res end
Internal setup function to Reorganize attributes order thanks following
data definition:
Internal setup function to Reorganize attributes order thanks following data definition :
attrs
<not_specific>
attr_groups
<not_specific>