Sha256: c34cb6c6ba51eafcdb409558396caad1d9b728836c1c05665298b0738a3505e5

Contents?: true

Size: 750 Bytes

Versions: 55

Compression:

Stored size: 750 Bytes

Contents

module Fiona7
  module Builder
    module WidgetBuilding
      def path
        @obj.path
      end

      def build
        super
      end

      protected
      def generate_widget_path
        raise Scrivito::ScrivitoError, "Inconsistent internal state: unable to create widgets for nonexiting parent." if @owner_obj.path.nil?
        # only publication type can contain children (code = "5")
        # also handle / this way
        if @owner_obj.obj_type_code != "5" || @owner_obj.id == 2001
          parent_path = "/_widgets/#{@owner_obj.id}"
        else
          parent_path = "#{@owner_obj.path}/_widgets"
        end
        "#{parent_path}/#{@widget_id}"
      end

      def write_widget_pool
        # NOP
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
infopark_fiona7-1.6.1.1.5 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.6.1.1.1 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.6.1.1.0 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.2.0.2.3 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.2.0.2.1 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.2.0.2.2 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.5.5.5.1 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.5.5.5.0 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.2.0.1.4 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.5.5.4.1 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.5.5.4.0 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.2.0.1.3 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.5.5.3.1 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.5.4.3.0 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.5.3.2.0 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.5.3.2.0.pre.beta1 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.5.2.1.0.pre.beta1 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.5.2.0.0 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.2.0.1.1 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.2.0.0.1 lib/fiona7/builder/widget_building.rb