Index: openacs-4/packages/xowiki-portlet/tcl/xowiki-portlet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki-portlet/tcl/xowiki-portlet-procs.tcl,v diff -u -N -r1.3.6.3 -r1.3.6.4 --- openacs-4/packages/xowiki-portlet/tcl/xowiki-portlet-procs.tcl 12 Apr 2019 21:29:46 -0000 1.3.6.3 +++ openacs-4/packages/xowiki-portlet/tcl/xowiki-portlet-procs.tcl 8 Mar 2022 09:01:07 -0000 1.3.6.4 @@ -73,46 +73,46 @@ # create the datasource # db_transaction { - set ds_id [::xo::db::sql::portal_datasource new -name $name \ + set ds_id [::acs::dc call portal_datasource new -name $name \ -css_dir "" \ -description "Displays an xowiki page as a portlet"] # default configuration - ::xo::db::sql::portal_datasource set_def_param -datasource_id $ds_id \ + ::acs::dc call portal_datasource set_def_param -datasource_id $ds_id \ -config_required_p t -configured_p t \ -key "shadeable_p" -value t - ::xo::db::sql::portal_datasource set_def_param -datasource_id $ds_id \ + ::acs::dc call portal_datasource set_def_param -datasource_id $ds_id \ -config_required_p t -configured_p t \ -key "shaded_p" -value f - ::xo::db::sql::portal_datasource set_def_param -datasource_id $ds_id \ + ::acs::dc call portal_datasource set_def_param -datasource_id $ds_id \ -config_required_p t -configured_p t \ -key "hideable_p" -value t - ::xo::db::sql::portal_datasource set_def_param -datasource_id $ds_id \ + ::acs::dc call portal_datasource set_def_param -datasource_id $ds_id \ -config_required_p t -configured_p t \ -key "user_editable_p" -value f - ::xo::db::sql::portal_datasource set_def_param -datasource_id $ds_id \ + ::acs::dc call portal_datasource set_def_param -datasource_id $ds_id \ -config_required_p t -configured_p t \ -key "link_hideable_p" -value t # xowiki-specific configuration - ::xo::db::sql::portal_datasource set_def_param -datasource_id $ds_id \ + ::acs::dc call portal_datasource set_def_param -datasource_id $ds_id \ -config_required_p t -configured_p f \ -key "package_id" -value "" - ::xo::db::sql::portal_datasource set_def_param -datasource_id $ds_id \ + ::acs::dc call portal_datasource set_def_param -datasource_id $ds_id \ -config_required_p t -configured_p f \ -key "page_name" -value "" # # service contract managemet # # create the implementation - ::xo::db::sql::acs_sc_impl new \ + ::acs::dc call acs_sc_impl new \ -impl_contract_name "portal_datasource" -impl_name $name \ -impl_pretty_name "" -impl_owner_name $name @@ -126,14 +126,14 @@ Edit "xowiki_portlet edit" RemoveSelfFromPage "xowiki_portlet remove_self_from_page" } { - ::xo::db::sql::acs_sc_impl_alias new \ + ::acs::dc call acs_sc_impl_alias new \ -impl_contract_name "portal_datasource" -impl_name $name \ -impl_operation_name $operation -impl_alias $call \ -impl_pl "TCL" } # Add the binding - ::xo::db::sql::acs_sc_binding new \ + ::acs::dc call acs_sc_binding new \ -contract_name "portal_datasource" -impl_name $name } :log "--portlet end of [self proc]" @@ -162,7 +162,7 @@ # # drop the datasource # - ::xo::db::sql::portal_datasource delete -datasource_id $ds_id + ::acs::dc call portal_datasource delete -datasource_id $ds_id # } else { ns_log notice "No datasource id found for $name" @@ -175,19 +175,19 @@ GetMyName GetPrettyName Link AddSelfToPage Show Edit RemoveSelfFromPage } { - ::xo::db::sql::acs_sc_impl_alias delete \ + ::acs::dc call acs_sc_impl_alias delete \ -impl_contract_name "portal_datasource" -impl_name $name \ -impl_operation_name $operation } # # drop the binding # - ::xo::db::sql::acs_sc_binding delete \ + ::acs::dc call acs_sc_binding delete \ -contract_name "portal_datasource" -impl_name $name # # drop the implementation # - ::xo::db::sql::acs_sc_impl delete \ + ::acs::dc call acs_sc_impl delete \ -impl_contract_name "portal_datasource" -impl_name $name } :log "--portlet end of [self proc]"