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