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.2.0.0.0 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.1.0.0.9 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.1.0.0.8 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.1.0.0.7 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.1.0.0.6 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.1.0.0.5 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.1.0.0.4 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.1.0.0.3 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.1.0.0.2 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.1.0.0.10 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.1.0.0.1 lib/fiona7/builder/widget_building.rb
infopark_fiona7-1.1.0.0.0 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.9 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.8 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.7 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.6 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.5 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.4 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.3 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.2 lib/fiona7/builder/widget_building.rb