Index: openacs-4/contrib/packages/simulation/lib/object-display.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/object-display.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/contrib/packages/simulation/lib/object-display.tcl 17 Oct 2003 09:55:53 -0000 1.4 +++ openacs-4/contrib/packages/simulation/lib/object-display.tcl 24 Oct 2003 12:27:01 -0000 1.5 @@ -65,29 +65,17 @@ set delete_url [export_vars -base [ad_conn package_url]object-delete { { item_id $item(item_id) } }] } - ##### # -# Render using template +# Serve stylesheet # ##### -# Dropped -return - -item::get_content \ - -revision_id [item::get_live_revision [item::get_template_id $item(item_id)]] \ - -array template - -# Make content available to rendered page -foreach __elm [array names content] { - set $__elm $content($__elm) +if { [info exists content(stylesheet)] } { + array set item [bcms::item::get_item -item_id $content(stylesheet)] + + set stylesheet_url [file join [ad_conn package_url] object-content $item(name)] +} else { + set stylesheet_url {} } - -publish::push_id $item_id $revision_id -set code [template::adp_compile -string $template(text)] -set rendered_page [template::adp_eval code] -publish::pop_id - -