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-0.71.1.12 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.11 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.10 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.1 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.1.0 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.0.7 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.0.6 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.0.4 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.0.3 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.0.2 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.0.1 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.71.0.0 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.70.0.3 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.70.0.2 lib/fiona7/builder/widget_building.rb
infopark_fiona7-0.70.0.1 lib/fiona7/builder/widget_building.rb