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 -r1.3.6.6 -r1.3.6.7 --- openacs-4/packages/xowiki-portlet/tcl/xowiki-portlet-procs.tcl 20 Sep 2022 08:54:37 -0000 1.3.6.6 +++ openacs-4/packages/xowiki-portlet/tcl/xowiki-portlet-procs.tcl 17 Jan 2023 10:24:00 -0000 1.3.6.7 @@ -73,7 +73,7 @@ # # create the datasource # - db_transaction { + ::xo::dc transaction { set ds_id [portal::datasource::new \ -name $name \ -description "Displays an xowiki page as a portlet"] @@ -151,13 +151,13 @@ # set name [:name] - db_transaction { + ::xo::dc transaction { # # get the datasource # - set ds_id [db_string dbqd..get_ds_id { + set ds_id [::xo::dc get_value get_ds_id { select datasource_id from portal_datasources where name = :name - } -default "0"] + } 0] if {$ds_id != 0} { #