Index: openacs-4/packages/xowiki/resources/templates/view-book-no-ajax.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/resources/templates/view-book-no-ajax.tcl,v diff -u -r1.2 -r1.2.2.1 --- openacs-4/packages/xowiki/resources/templates/view-book-no-ajax.tcl 7 Aug 2017 23:48:30 -0000 1.2 +++ openacs-4/packages/xowiki/resources/templates/view-book-no-ajax.tcl 8 May 2019 14:33:40 -0000 1.2.2.1 @@ -1,4 +1,4 @@ -set title [$package_id get_parameter PackageTitle [$package_id instance_name]] +set title [::$package_id get_parameter PackageTitle [::$package_id instance_name]] #set toc [$page include [list toc -ajax 0 -open_page $name -decoration plain -remove_levels 0]] set toc [$page include [list toc -style list -open_page $name -expand_all 1 -decoration plain]] set i [$page set __last_includelet] @@ -14,8 +14,8 @@ if {$count > 0} { set book_relpos [format %.2f%% [expr {100.0 * $p / $count}]] - if {$p>1} {set book_prev_link [$package_id pretty_link -parent_id [$i parent_id] [$i page_name [expr {$p - 1}]]]} - if {$p<$count} {set book_next_link [$package_id pretty_link -parent_id [$i parent_id] [$i page_name [expr {$p + 1}]]]} + if {$p>1} {set book_prev_link [::$package_id pretty_link -parent_id [$i parent_id] [$i page_name [expr {$p - 1}]]]} + if {$p<$count} {set book_next_link [::$package_id pretty_link -parent_id [$i parent_id] [$i page_name [expr {$p + 1}]]]} set page_title "
$errorMsg
"] } } @@ -315,7 +315,7 @@ if {$name eq ""} { $f save_new } else { - set id [$fp_package_id lookup -parent_id $fp_parent_id -name $name] + set id [::$fp_package_id lookup -parent_id $fp_parent_id -name $name] if {$id == 0} { $f save_new } else { @@ -414,14 +414,14 @@ error "no form specified" } $package_id get_lang_and_name -default_lang [::xo::cc lang] -path $formName lang stripped_url - set d [$package_id item_ref -default_lang $lang -parent_id [$package_id folder_id] $formName] + set d [::$package_id item_ref -default_lang $lang -parent_id [::$package_id folder_id] $formName] set item_id [dict get $d item_id] if {$item_id == 0} { error "cannot lookup page $formName" } ::xo::db::CrClass get_instance_from_db -item_id $item_id if {[info commands ::$item_id] eq "" - || "::xowiki::PageTemplate" ni [$item_id info precedence]} { + || "::xowiki::PageTemplate" ni [::$item_id info precedence]} { error "OK $formName is not suited to be used as template. Should be a Form!" } if {[:page_template] == $item_id} { @@ -511,7 +511,7 @@ if {$latest_revision ne ""} { # otherwise, "delete" did already the redirect ${:package_id} returnredirect [:query_parameter "return_url" \ - [export_vars -base [$package_id url] {{m revisions}}]] + [export_vars -base [::$package_id url] {{m revisions}}]] } } @@ -742,9 +742,9 @@ set package_id ${:package_id} # set some default values if they are provided foreach key {name title page_order last_page_id nls_language} { - if {[$package_id exists_query_parameter $key]} { - #:log "setting [self] set $key [$package_id query_parameter $key]" - set :$key [$package_id query_parameter $key] + if {[::$package_id exists_query_parameter $key]} { + #:log "setting [self] set $key [::$package_id query_parameter $key]" + set :$key [::$package_id query_parameter $key] } } } @@ -773,7 +773,7 @@ # Page instproc changed_redirect_url {} { set package_id ${:package_id} - if {[$package_id exists_query_parameter "return_url"]} { + if {[::$package_id exists_query_parameter "return_url"]} { return "" } return [:pretty_link] @@ -803,7 +803,7 @@ :edit_set_default_values set fs_folder_id [:edit_set_file_selector_folder] - if {[$package_id exists_query_parameter "return_url"]} { + if {[::$package_id exists_query_parameter "return_url"]} { set submit_link [:get_query_parameter_return_url] set return_url $submit_link } else { @@ -830,9 +830,9 @@ # Determine the package_id of some mounted xowiki instance to find # the directory + URL, from where the scripts called from Xinha # can be used. - if {[$package_id info class] eq "::xowiki::Package"} { + if {[::$package_id info class] eq "::xowiki::Package"} { # The actual instance is a plain xowiki instance, we can use it - set folder_spec [list script_dir [$package_id package_url]] + set folder_spec [list script_dir [::$package_id package_url]] } else { # The actual instance is not a plain xowiki instance, so, we try # to find one, where the current user has at least read @@ -841,7 +841,7 @@ set first_instance_id [::xowiki::Package first_instance -party_id [::xo::cc user_id] -privilege read] if {$first_instance_id ne ""} { ::xowiki::Package require $first_instance_id - set folder_spec [list script_dir [$first_instance_id package_url]] + set folder_spec [list script_dir [::$first_instance_id package_url]] } } @@ -850,7 +850,7 @@ } [$object_type getFormClass -data [self]] create ::xowiki::f1 -volatile \ - -action [export_vars -base [$package_id url] $action_vars] \ + -action [export_vars -base [::$package_id url] $action_vars] \ -data [self] \ -folderspec $folder_spec \ -submit_link $submit_link \ @@ -866,19 +866,19 @@ ::xowiki::f1 instvar edit_form_page_title context formTemplate if {[info exists item_id]} { - set rev_link [$package_id make_link [self] revisions] - set view_link [$package_id make_link [self] view] + set rev_link [::$package_id make_link [self] revisions] + set view_link [::$package_id make_link [self] view] } if {[info exists last_page_id]} { - set back_link [$package_id url] + set back_link [::$package_id url] } - set index_link [$package_id make_link -privilege public -link "" $package_id {} {}] - ::xo::Page set_property doc title "[$package_id instance_name] - $edit_form_page_title" + set index_link [::$package_id make_link -privilege public -link "" $package_id {} {}] + ::xo::Page set_property doc title "[::$package_id instance_name] - $edit_form_page_title" array set property_doc [::xo::Page get_property doc] - set edit_tmpl [$package_id get_adp_template "edit"] - set html [$package_id return_page -adp $edit_tmpl \ + set edit_tmpl [::$package_id get_adp_template "edit"] + set html [::$package_id return_page -adp $edit_tmpl \ -form f1 \ -variables {item_id parent_id edit_form_page_title context formTemplate view_link back_link rev_link index_link property_doc}] @@ -1007,7 +1007,7 @@ # # In case we are triggered internally, we might not have a # a connection and therefore do not valide the csrf token - if {![$package_id exists __batch_mode]} { + if {![::$package_id exists __batch_mode]} { security::csrf::validate } @@ -1021,16 +1021,16 @@ # error messages again, but we return simply the validation # problems. # - if {[$package_id exists __batch_mode]} { + if {[::$package_id exists __batch_mode]} { set errors [list] foreach f $form_fields { if {[$f error_msg] ne ""} { lappend errors [list field [$f name] value [$f set value] error [$f error_msg]] } } set evaluation_errors "" - if {[$package_id exists __evaluation_error]} { - set evaluation_errors "\nEvaluation error: [$package_id set __evaluation_error]" + if {[::$package_id exists __evaluation_error]} { + set evaluation_errors "\nEvaluation error: [::$package_id set __evaluation_error]" $package_id unset __evaluation_error } error "[llength $errors] validation error(s): $errors $evaluation_errors" @@ -1066,7 +1066,7 @@ # The method query_parameter uses now "::xo::cc set_parameter ...." # with highest precedence # - set return_url [$package_id query_parameter return_url $url] + set return_url [::$package_id query_parameter return_url $url] #:log "${:name}: url=$url, return_url=$return_url" $package_id returnredirect $return_url @@ -1250,7 +1250,7 @@ # through a link. # if {[::xo::cc exists invoke_object] && [::xo::cc invoke_object] ne [self]} { - #:log "=== no return_url specified, using [::xo::cc url] or [[$package_id context] url]" + #:log "=== no return_url specified, using [::xo::cc url] or [[::$package_id context] url]" set return_url [::xo::cc url] } } @@ -1662,36 +1662,36 @@ # # Set up template variables. # - set object_type [$page_package_id get_parameter object_type [:info class]] - set rev_link [$page_package_id make_link -with_entities 0 [self] revisions] + set object_type [::$page_package_id get_parameter object_type [:info class]] + set rev_link [::$page_package_id make_link -with_entities 0 [self] revisions] - if {[$context_package_id query_parameter m ""] eq "edit"} { - set view_link [$page_package_id make_link -with_entities 0 [self] view return_url] + if {[::$context_package_id query_parameter m ""] eq "edit"} { + set view_link [::$page_package_id make_link -with_entities 0 [self] view return_url] set edit_link "" } else { - set edit_link [$page_package_id make_link -with_entities 0 [self] edit return_url] + set edit_link [::$page_package_id make_link -with_entities 0 [self] edit return_url] set view_link "" } - set delete_link [$page_package_id make_link -with_entities 0 [self] delete return_url] + set delete_link [::$page_package_id make_link -with_entities 0 [self] delete return_url] if {[info exists :__link(new)]} { set new_link [set :__link(new)] } else { set new_link [:new_link $page_package_id] } - set admin_link [$context_package_id make_link -privilege admin -link admin/ $context_package_id {} {}] - set index_link [$context_package_id make_link -privilege public -link "" $context_package_id {} {}] - set toc_link [$context_package_id make_link -privilege public -link "list" $context_package_id {} {}] - set import_link [$context_package_id make_link -privilege admin -link "" $context_package_id {} {}] - set page_show_link [$page_package_id make_link -privilege admin [self] show-object return_url] - set view_link [$page_package_id make_link -with_entities 0 [self] view return_url] + set admin_link [::$context_package_id make_link -privilege admin -link admin/ $context_package_id {} {}] + set index_link [::$context_package_id make_link -privilege public -link "" $context_package_id {} {}] + set toc_link [::$context_package_id make_link -privilege public -link "list" $context_package_id {} {}] + set import_link [::$context_package_id make_link -privilege admin -link "" $context_package_id {} {}] + set page_show_link [::$page_package_id make_link -privilege admin [self] show-object return_url] + set view_link [::$page_package_id make_link -with_entities 0 [self] view return_url] set notification_subscribe_link "" - if {[$context_package_id get_parameter "with_notifications" 1]} { + if {[::$context_package_id get_parameter "with_notifications" 1]} { if {[::xo::cc user_id] != 0} { ;# notifications require login set notifications_return_url [expr {[info exists return_url] ? $return_url : [ad_return_url]}] set notification_type [notification::type::get_type_id -short_name xowiki_notif] - set notification_text "Subscribe to [$context_package_id instance_name]" + set notification_text "Subscribe to [::$context_package_id instance_name]" set notification_subscribe_link \ [export_vars -base /notifications/request-new \ {{return_url $notifications_return_url} @@ -1707,7 +1707,7 @@ # # The menubar is work in progress # - set mb [$context_package_id get_parameter "MenuBar" 0] + set mb [::$context_package_id get_parameter "MenuBar" 0] if {$mb ne "0" && [info commands ::xowiki::MenuBar] ne ""} { set clipboard_size [::xowiki::clipboard size] @@ -1717,7 +1717,7 @@ # Define standard xowiki menubar # set mb [::xowiki::MenuBar create ::__xowiki__MenuBar -id menubar] - $mb add_menu -name Package -label [$context_package_id instance_name] + $mb add_menu -name Package -label [::$context_package_id instance_name] $mb add_menu -name New -label [_ xowiki.menu-New] $mb add_menu -name Clipboard -label $clipboard_label $mb add_menu -name Page -label [_ xowiki.menu-Page] @@ -1762,15 +1762,15 @@ # # These variables can be influenced via set-parameter. # - set autoname [$page_package_id get_parameter autoname 0] + set autoname [::$page_package_id get_parameter autoname 0] # # Setup top includeletes and footers. # set footer [:htmlFooter -content $content] set top_includelets "" - set vp [string trim [$context_package_id get_parameter "top_includelet" ""]] + set vp [string trim [::$context_package_id get_parameter "top_includelet" ""]] if {$vp ne "" && $vp ne "none"} { set top_includelets [:include $vp] } @@ -1779,7 +1779,7 @@ # # The following block should not be here, but in the templates. # - set showFolders [$context_package_id get_parameter "MenuBarWithFolder" 1] + set showFolders [::$context_package_id get_parameter "MenuBarWithFolder" 1] if {$showFolders} { set folderhtml [:include {folders -style folders}] } else { @@ -1794,15 +1794,15 @@ ::xo::Page set_property body menubarHTML $mbHTML } - if {[$context_package_id get_parameter "with_user_tracking" 1]} { + if {[::$context_package_id get_parameter "with_user_tracking" 1]} { :record_last_visited } # # Deal with the views package (many thanks to Malte for this # snippet!) # - if {[$context_package_id get_parameter with_views_package_if_available 1] + if {[::$context_package_id get_parameter with_views_package_if_available 1] && [info commands ::views::record_view] ne ""} { views::record_view -object_id ${:item_id} -viewer_id [::xo::cc user_id] array set views_data [views::get -object_id ${:item_id}] @@ -1814,25 +1814,25 @@ #:log "--after notifications [info exists notification_image]" - set master [$context_package_id get_parameter "master" 1] + set master [::$context_package_id get_parameter "master" 1] if {![string is boolean -strict $master]} { ad_return_complaint 1 "value of master is not boolean" ad_script_abort } if {$master} { set context [list ${:title}] - #:msg "$context_package_id title=[$context_package_id instance_name] - ${:title}" + #:msg "$context_package_id title=[::$context_package_id instance_name] - ${:title}" #:msg "::xo::cc package_id = [::xo::cc package_id] ::xo::cc url= [::xo::cc url] " - ::xo::Page set_property doc title "[$context_package_id instance_name] - ${:title}" + ::xo::Page set_property doc title "[::$context_package_id instance_name] - ${:title}" ::xo::Page set_property body title ${:title} # We could offer a user to translate the current page to his preferred language # # set create_in_req_locale_link "" - # if {[$context_package_id get_parameter use_connection_locale 0]} { - # $context_package_id get_lang_and_name -path [$context_package_id set object] req_lang req_local_name - # set default_lang [$page_package_id default_language] + # if {[::$context_package_id get_parameter use_connection_locale 0]} { + # $context_package_id get_lang_and_name -path [::$context_package_id set object] req_lang req_local_name + # set default_lang [::$page_package_id default_language] # if {$req_lang ne $default_lang} { # set l [Link create new -destroy_on_cleanup \ # -page [self] -type language -stripped_name $req_local_name \ @@ -1845,10 +1845,10 @@ # } #:log "--after context delete_link=$delete_link " - set template [$context_package_id get_parameter "template" ""] + set template [::$context_package_id get_parameter "template" ""] set page [self] - foreach css [$context_package_id get_parameter extra_css ""] { + foreach css [::$context_package_id get_parameter extra_css ""] { ::xo::Page requireCSS -order 10 $css } @@ -1926,7 +1926,7 @@ } } if {$meta(keywords) eq ""} { - set meta(keywords) [$context_package_id get_parameter keywords ""] + set meta(keywords) [::$context_package_id get_parameter keywords ""] } foreach i [array names meta] { # don't set empty meta tags @@ -1943,13 +1943,13 @@ array set doc [::xo::Page get_property doc] if {$page_package_id != $context_package_id} { - set page_context [$page_package_id instance_name] + set page_context [::$page_package_id instance_name] } if {$template ne ""} { set __including_page $page #set __adp_stub [acs_root_dir]/packages/xowiki/www/view-default - set __adp_stub [$context_package_id get_adp_template view-default] + set __adp_stub [::$context_package_id get_adp_template view-default] set template_code [template::adp_compile -string $template] # Index: openacs-4/packages/xowiki/tcl/test/test-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/test/test-procs.tcl,v diff -u -r1.15.2.5 -r1.15.2.6 --- openacs-4/packages/xowiki/tcl/test/test-procs.tcl 17 Apr 2019 11:57:26 -0000 1.15.2.5 +++ openacs-4/packages/xowiki/tcl/test/test-procs.tcl 8 May 2019 14:33:40 -0000 1.15.2.6 @@ -256,7 +256,7 @@ set d [acs::test::http \ -last_request $last_request -user_id $user_id \ - $instance/admin/set-publish-state?state=ready&revision_id=[$item_id revision_id]] + $instance/admin/set-publish-state?state=ready&revision_id=[::$item_id revision_id]] acs::test::reply_has_status_code $d 302 aa_log "create_form_page: DONE" } @@ -419,7 +419,7 @@ set d [acs::test::http \ -last_request $last_request -user_id $user_id \ - $instance/admin/set-publish-state?state=ready&revision_id=[$item_id revision_id]] + $instance/admin/set-publish-state?state=ready&revision_id=[::$item_id revision_id]] acs::test::reply_has_status_code $d 302 } Index: openacs-4/packages/xowiki/tcl/upgrade/upgrade.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/upgrade/upgrade.tcl,v diff -u -r1.15 -r1.15.2.1 --- openacs-4/packages/xowiki/tcl/upgrade/upgrade.tcl 9 Nov 2018 12:07:14 -0000 1.15 +++ openacs-4/packages/xowiki/tcl/upgrade/upgrade.tcl 8 May 2019 14:33:40 -0000 1.15.2.1 @@ -300,10 +300,10 @@ # rename swf:name and image:name to file:name db_dml change_swf \ "update cr_items set name = 'file' || substr(name,4) \ - where name like 'swf:%' and parent_id = [$package_id folder_id]" + where name like 'swf:%' and parent_id = [::$package_id folder_id]" db_dml change_image \ "update cr_items set name = 'file' || substr(name,6) \ - where name like 'image:%' and parent_id = [$package_id folder_id]" + where name like 'image:%' and parent_id = [::$package_id folder_id]" # reload updated prototype pages $package_id import-prototype-page book $package_id import-prototype-page weblog @@ -333,10 +333,10 @@ # db_dml change_swf \ "update cr_items set name = 'file' || substr(name,4) \ - where name like 'swf:%' and parent_id = [$package_id folder_id]" + where name like 'swf:%' and parent_id = [::$package_id folder_id]" db_dml change_image \ "update cr_items set name = 'file' || substr(name,6) \ - where name like 'image:%' and parent_id = [$package_id folder_id]" + where name like 'image:%' and parent_id = [::$package_id folder_id]" } } catch { @@ -499,16 +499,16 @@ foreach package_id [::xowiki::Package instances] { ::xowiki::Package initialize -package_id $package_id - set item_id [$package_id lookup -name ::[$package_id folder_id]] + set item_id [::$package_id lookup -name ::[::$package_id folder_id]] if {$item_id ne 0} { ::xowiki::Object get_instance_from_db -item_id $item_id - set p [$item_id get_payload widget_specs] + set p [::$item_id get_payload widget_specs] if {$p ne ""} { - ns_log notice "Transferring widget_specs to parameter WidgetSpecs for $package_id [$package_id package_url]" + ns_log notice "Transferring widget_specs to parameter WidgetSpecs for $package_id [::$package_id package_url]" parameter::set_value -package_id $package_id -parameter WidgetSpecs -value $p } } else { - ns_log notice "no folder object found for $package_id - [$package_id package_url]" + ns_log notice "no folder object found for $package_id - [::$package_id package_url]" } } } Index: openacs-4/packages/xowiki/www/portlet-ajax.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/portlet-ajax.tcl,v diff -u -r1.7 -r1.7.2.1 --- openacs-4/packages/xowiki/www/portlet-ajax.tcl 14 Mar 2018 15:40:49 -0000 1.7 +++ openacs-4/packages/xowiki/www/portlet-ajax.tcl 8 May 2019 14:33:40 -0000 1.7.2.1 @@ -5,7 +5,7 @@ if {![string match "/*" $portlet]} { set folder_id [$__including_page set parent_id] - set package_id [$folder_id set package_id] + set package_id [::$folder_id set package_id] set portlet [lindex [site_node::get_url_from_object_id -object_id $package_id] 0]portlets/$portlet } Index: openacs-4/packages/xowiki/www/admin/export.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/admin/export.tcl,v diff -u -r1.24 -r1.24.2.1 --- openacs-4/packages/xowiki/www/admin/export.tcl 22 Dec 2017 13:51:41 -0000 1.24 +++ openacs-4/packages/xowiki/www/admin/export.tcl 8 May 2019 14:33:40 -0000 1.24.2.1 @@ -22,7 +22,7 @@ } else { foreach o $objects { $package_id get_lang_and_name -default_lang [::xo::cc lang] -path $o lang stripped_name - set parent_id [$package_id get_parent_and_name -lang $lang \ + set parent_id [::$package_id get_parent_and_name -lang $lang \ -path $stripped_name -parent_id $folder_id \ parent local_name] #ns_log notice "lookup of $o in $folder_id returns [::xo::db::CrClass lookup -name $o -parent_id $parent_id]" Index: openacs-4/packages/xowiki/www/admin/import.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/admin/import.tcl,v diff -u -r1.28 -r1.28.2.1 --- openacs-4/packages/xowiki/www/admin/import.tcl 4 Jan 2019 15:50:36 -0000 1.28 +++ openacs-4/packages/xowiki/www/admin/import.tcl 8 May 2019 14:33:40 -0000 1.28.2.1 @@ -65,7 +65,7 @@ set parent_id [ns_queryget parent_id 0] #::xotcl::Object msg parent_id=$parent_id ad_try { - set msg [$package_id import -replace $replace -create_user_ids $create_user_ids \ + set msg [::$package_id import -replace $replace -create_user_ids $create_user_ids \ -parent_id $parent_id -objects $objects] } on error {errMsg} { ns_log notice "Error during import: $errMsg\nErrInfo: $::errorInfo" Index: openacs-4/packages/xowiki/www/admin/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/admin/index.tcl,v diff -u -r1.31 -r1.31.2.1 --- openacs-4/packages/xowiki/www/admin/index.tcl 9 May 2018 15:33:34 -0000 1.31 +++ openacs-4/packages/xowiki/www/admin/index.tcl 8 May 2019 14:33:40 -0000 1.31.2.1 @@ -16,7 +16,7 @@ set object_types [$object_type object_types] set return_url [ns_conn url] -set category_url [export_vars -base [$package_id package_url] { {manage-categories 1} {object_id $package_id}}] +set category_url [export_vars -base [::$package_id package_url] { {manage-categories 1} {object_id $package_id}}] lang::message::lookup "" xowiki.admin " " TableWidget t1 -volatile \ @@ -63,7 +63,7 @@ set delete_title [_ xowiki.delete_all_items] } else { set add_title [_ xotcl-core.add [list type [$object_type pretty_name]]] - set add_href [$package_id make_link -with_entities 0 $package_id edit-new object_type return_url autoname] + set add_href [::$package_id make_link -with_entities 0 $package_id edit-new object_type return_url autoname] set delete_title [_ xowiki.delete_all_instances] } t1 add \ Index: openacs-4/packages/xowiki/www/admin/list.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/admin/list.tcl,v diff -u -r1.38 -r1.38.2.1 --- openacs-4/packages/xowiki/www/admin/list.tcl 22 Jan 2018 18:42:59 -0000 1.38 +++ openacs-4/packages/xowiki/www/admin/list.tcl 8 May 2019 14:33:40 -0000 1.38.2.1 @@ -37,14 +37,14 @@ set return_url [expr {$per_type ? [export_vars -base [::$package_id url] object_type] : [::$package_id url]}] -set category_url [export_vars -base [$package_id package_url] { {manage-categories 1} {object_id $package_id}}] +set category_url [export_vars -base [::$package_id package_url] { {manage-categories 1} {object_id $package_id}}] set actions [subst { Action new -label "[lang::message::lookup {} categories.Categories Categories]" \ -url $category_url }] foreach type $object_types { - set link [$package_id make_link -with_entities 0 \ + set link [::$package_id make_link -with_entities 0 \ $package_id edit-new {object_type $type} return_url autoname] if {$link eq ""} continue append actions [subst { @@ -55,7 +55,7 @@ }] } -set ::individual_permissions [expr {[$package_id set policy] eq "::xowiki::policy3"}] +set ::individual_permissions [expr {[::$package_id set policy] eq "::xowiki::policy3"}] set ::with_publish_status 1 TableWidget create t1 -volatile \ @@ -141,7 +141,7 @@ -edit.title #xowiki.edit# \ -mod_user [::xo::get_user_name $creation_user] \ -delete "" \ - -delete.href [export_vars -base [$package_id package_url] {{delete 1} item_id name return_url}] \ + -delete.href [export_vars -base [::$package_id package_url] {{delete 1} item_id name return_url}] \ -delete.title #xowiki.delete# if {$::individual_permissions} { @@ -159,7 +159,7 @@ } [::template::t1 last_child] set publish_status.src /resources/xowiki/$image [::template::t1 last_child] set publish_status.href \ - [export_vars -base [$package_id package_url]admin/set-publish-state \ + [export_vars -base [::$package_id package_url]admin/set-publish-state \ {state revision_id return_url}] } [::template::t1 last_child] set page_order $page_order Index: openacs-4/packages/xowiki/www/admin/permissions.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/admin/permissions.tcl,v diff -u -r1.8 -r1.8.2.1 --- openacs-4/packages/xowiki/www/admin/permissions.tcl 7 Aug 2017 23:48:31 -0000 1.8 +++ openacs-4/packages/xowiki/www/admin/permissions.tcl 8 May 2019 14:33:40 -0000 1.8.2.1 @@ -15,13 +15,13 @@ set object_id $item_id set page_name [$page name] set page_title [_ xowiki.permissions_manage_page] - set return_url [$package_id query_parameter return_url [$package_id package_url]admin/list] + set return_url [::$package_id query_parameter return_url [::$package_id package_url]admin/list] } else { set object_id $package_id set package_name [apm_instance_name_from_id $package_id] - set package_name [$package_id get_parameter PackageTitle $package_name] + set package_name [::$package_id get_parameter PackageTitle $package_name] set page_title [_ xowiki.permissions_manage_package] - set return_url [$package_id query_parameter return_url [$package_id package_url]admin] + set return_url [::$package_id query_parameter return_url [::$package_id package_url]admin] } set context [list $page_title] Index: openacs-4/packages/xowiki/www/admin/portal-element-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/admin/portal-element-add.tcl,v diff -u -r1.17 -r1.17.2.1 --- openacs-4/packages/xowiki/www/admin/portal-element-add.tcl 22 Jan 2018 00:53:45 -0000 1.17 +++ openacs-4/packages/xowiki/www/admin/portal-element-add.tcl 8 May 2019 14:33:40 -0000 1.17.2.1 @@ -12,7 +12,7 @@ {-referer .} } -set page [$package_id get_page_from_item_ref $page_name] +set page [::$package_id get_page_from_item_ref $page_name] if {$page eq ""} { # Index: openacs-4/packages/xowiki/www/admin/test.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/admin/Attic/test.tcl,v diff -u -r1.46 -r1.46.2.1 --- openacs-4/packages/xowiki/www/admin/test.tcl 5 Aug 2018 21:13:10 -0000 1.46 +++ openacs-4/packages/xowiki/www/admin/test.tcl 8 May 2019 14:33:40 -0000 1.46.2.1 @@ -157,7 +157,7 @@ ? {$package_id url} /$instance_name/ ? {$package_id id} $package_id "the id of the package object = package_id" -test code [$package_id serialize] +test code [::$package_id serialize] ############################################ test subsection "Basic Setup: Folder Object" @@ -178,8 +178,8 @@ ############################################## ? {$package_id set object} "" "object name parsed" ? {set m} view "method passed from package initialize" -set object [$package_id set object] -set page_item_id [$package_id resolve_page $object $m] +set object [::$package_id set object] +set page_item_id [::$package_id resolve_page $object $m] ? {expr {$page_item_id ne ""}} 1 "index page resolved" ? {::xotcl::Object isobject ::$page_item_id} 1 "we have a page object" ? {expr {[::$page_item_id item_id]>0}} 1 "item_id given" @@ -189,14 +189,14 @@ ? {::$page_item_id name} en:index "name of resolved index page" ? {::$page_item_id istype ::xowiki::Page} 1 "type or subtype of ::xowiki::Page" -set content [$package_id call $page_item_id $m ""] +set content [::$package_id call $page_item_id $m ""] set content_length [string length $content] ? {expr {$content_length > 1000}} 1 \ "page rendered, content-length $content_length > 1000" ? {string first Error $content} -1 "page contains no error" ? {xo::dc get_value count "select count(*) from cr_items where parent_id = $folder_id"} 1 \ "folder contains the index page" -#test code [$page_item_id serialize] +#test code [::$page_item_id serialize] ########################################################### test subsection "Check Permissions based on default policy" @@ -273,8 +273,8 @@ ######################################### ? {$package_id set object} "" "object name parsed" ? {set m} view "method passed from package initialize" -set object [$package_id set object] -set page_item_id [$package_id resolve_page $object $m] +set object [::$package_id set object] +set page_item_id [::$package_id resolve_page $object $m] ? {expr {$page_item_id ne ""}} 1 "index page resolved" ? {::xotcl::Object isobject ::$page_item_id} 1 "we have a page object" ? {expr {[::$page_item_id item_id]>0}} 1 "item_id given" @@ -284,12 +284,12 @@ ? {::$page_item_id name} en:index "name of resolved index page" ? {::$page_item_id istype ::xowiki::Page} 1 "type or subtype of ::xowiki::Page" -set content [$package_id call $page_item_id $m ""] +set content [::$package_id call $page_item_id $m ""] set content_length [string length $content] ? {expr {$content_length > 1000}} 1 \ "page rendered, content-length $content_length > 1000" ? {string first Error $content} -1 "page contains no error" -#test code [$page_item_id serialize] +#test code [::$page_item_id serialize] ######################################################################## # @@ -396,7 +396,7 @@ "SWA sees the delete link" ? {expr {[::$package_id make_link -privilege admin -link admin/ $package_id {} {}] ne ""}} 1 \ "SWA sees admin link" -? {xo::dc get_value count "select count(*) from cr_items where parent_id=[$package_id folder_id]"} 3 \ +? {xo::dc get_value count "select count(*) from cr_items where parent_id=[::$package_id folder_id]"} 3 \ "folder contains: index and weblog page (+1 includelet)" ::xo::at_cleanup @@ -415,7 +415,7 @@ ? {::xo::cc exists __continuation} 1 "continuation exists" ? {::xo::cc set __continuation} "ad_returnredirect /$instance_name/" \ "redirect to main instance" -? {xo::dc get_value count "select count(*) from cr_items where parent_id=[$package_id folder_id]"} 2 \ +? {xo::dc get_value count "select count(*) from cr_items where parent_id=[::$package_id folder_id]"} 2 \ "folder contains: index and weblog page (+0 includelet)" ############################################################################ @@ -425,7 +425,7 @@ -title "Hello World" \ -name en:hello \ -package_id $package_id \ - -parent_id [$package_id folder_id] \ + -parent_id [::$package_id folder_id] \ -destroy_on_cleanup \ -text { Hello [[Wiki]] World. @@ -434,7 +434,7 @@ $page initialize_loaded_object $page save_new ? {$page set package_id} $package_id "package_id $package_id not modified" -? {xo::dc get_value count "select count(*) from cr_items where parent_id=[$package_id folder_id]"} 3 \ +? {xo::dc get_value count "select count(*) from cr_items where parent_id=[::$package_id folder_id]"} 3 \ "folder contains: index and weblog, hello page (+0 includelet)" ? {expr {[$page revision_id]>0}} 1 "revision_id given" ? {expr {[$page item_id]>0}} 1 "item_id given" @@ -443,7 +443,7 @@ $page append title "- V.2" $page save -? {xo::dc get_value count "select count(*) from cr_items where parent_id=[$package_id folder_id]"} 3 \ +? {xo::dc get_value count "select count(*) from cr_items where parent_id=[::$package_id folder_id]"} 3 \ "still 3 pages" ? {expr {[$page revision_id]>$revision_id1}} 1 "revision_id > old revision_id" ? {expr {[$page item_id] == $item_id1}} 1 "item id the same" @@ -467,7 +467,7 @@ ? {expr {$content_length > 1000}} 1 \ "page rendered, content-length $content_length > 1000" ? {string first Error $content} -1 "page contains no error" -? {xo::dc get_value count "select count(*) from cr_items where parent_id=[$package_id folder_id]"} 4 \ +? {xo::dc get_value count "select count(*) from cr_items where parent_id=[::$package_id folder_id]"} 4 \ "again, 4 pages" ::xo::at_cleanup @@ -517,8 +517,8 @@ ? {info exists signature} 1 "signature contained in form" ? {expr {$signature ne ""}} 1 "signature not empty" -set title [$returned_item_id title] -set text [lindex [$returned_item_id text] 0] +set title [::$returned_item_id title] +set text [lindex [::$returned_item_id text] 0] ? {set title} {Hello World- V.2} ? {set text} {Hello [[Wiki]] World.} @@ -704,7 +704,7 @@ if {$item_id == 0} { set form_id [::xowiki::Weblog instantiate_forms -forms en:folder.form -package_id $package_id] - set f [$form_id create_form_page_instance \ + set f [::$form_id create_form_page_instance \ -name $name \ -nls_language en_US \ -default_variables [list title "Folder $name" parent_id $parent_id package_id $package_id]] @@ -723,7 +723,7 @@ set target [::xo::db::CrClass get_instance_from_db -item_id $target_id] set item_ref [[$target package_id] external_name -parent_id [$target parent_id] [$target name]] - set f [$form_id create_form_page_instance \ + set f [::$form_id create_form_page_instance \ -name $name \ -nls_language en_US \ -instance_attributes [list link $item_ref] \ @@ -773,16 +773,16 @@ # destroyed later. However, if some test bails out with an error, # the destroy might not be reached ::xowiki::Page create p \ - -package_id $package_id -nls_language de_DE -parent_id [$package_id folder_id] \ + -package_id $package_id -nls_language de_DE -parent_id [::$package_id folder_id] \ -name p -destroy_on_cleanup p set unresolved_references 0 test subsection "Ingredients:" - set folder_id [$package_id folder_id] + set folder_id [::$package_id folder_id] test hint "folder_id => $folder_id" - set folder_id [$package_id folder_id] + set folder_id [::$package_id folder_id] # make sure, we have folder "f1" with subfolder "f3" with subfolder "subf3" set f1_id [require_folder "f1" $folder_id $package_id] @@ -1272,63 +1272,63 @@ set l [$f1 pretty_link] set test [label "url" "topfolder" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $f1_id && $(stripped_name) eq "f1"}} 1 "\n$test:\n [array get {}]\n " set l [$f2 pretty_link] set test [label "url" "folder under topfolder" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $f3_id && $(stripped_name) eq "f3"}} 1 "\n$test:\n [array get {}]\n " set l [$f3 pretty_link] set test [label "url" "subsubfolder" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $subf3_id && $(stripped_name) eq "subf3"}} 1 "\n$test:\n [array get {}]\n " set l [$p1 pretty_link] set test [label "url" "toppage" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $parentpage_id && $(stripped_name) eq "parentpage"}} 1 "\n$test:\n [array get {}]\n " set l [$p2 pretty_link] set test [label "url" "page in folder" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $testpage_id && $(stripped_name) eq "testpage"}} 1 "\n$test:\n [array get {}]\n " set l [$p3 pretty_link] set test [label "url" "page under page" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $childpage_id && $(stripped_name) eq "childpage"}} 1 "\n$test:\n [array get {}]\n " set l [$p4 pretty_link] set test [label "url" "toplevel en page" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $enpage_id && $(stripped_name) eq "page" && $(name) eq "en:page"}} 1 "\n$test:\n [array get {}]\n " set l [$p5 pretty_link] set test [label "url" "en page under subfolder" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $f3page_id && $(stripped_name) eq "page" && $(name) eq "en:page"}} 1 "\n$test:\n [array get {}]\n " # image links set l [$i1 pretty_link] set test [label "url" "toplevel image" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $image_id && $(stripped_name) eq "image.png" && $(name) eq "file:image.png"}} 1 "\n$test:\n [array get {}]\n " set l [$i2 pretty_link] set test [label "url" "toplevel image" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $subimage_id && $(stripped_name) eq "image2.png" && $(name) eq "file:image2.png"}} 1 "\n$test:\n [array get {}]\n " set l [$i3 pretty_link] set test [label "url" "toplevel image" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $childimage_id && $(stripped_name) eq "image3.png" && $(name) eq "file:image3.png" && $(method) eq ""}} 1 "\n$test:\n [array get {}]\n " @@ -1337,31 +1337,31 @@ set l [$l1 pretty_link] set test [label "url" "toplevel link to page" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $pagelink_id && $(stripped_name) eq "link1" && $(name) eq "link1" && $(method) eq ""}} 1 "\n$test:\n [array get {}]\n " set l [$l2 pretty_link] set test [label "url" "toplevel link to folder" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $folderlink_id && $(stripped_name) eq "link2" && $(name) eq "link2" && $(method) eq ""}} 1 "\n$test:\n [array get {}]\n " set l [$l3 pretty_link] set test [label "url" "toplevel link to page under folder" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $subpagelink_id && $(stripped_name) eq "link3" && $(name) eq "link3" && $(method) eq ""}} 1 "\n$test:\n [array get {}]\n " set l [$l4 pretty_link] set test [label "url" "toplevel link to folder under folder" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $subfolderlink_id && $(stripped_name) eq "link4" && $(name) eq "link4" && $(method) eq ""}} 1 "\n$test:\n [array get {}]\n " set l [$l5 pretty_link] set test [label "url" "toplevel link to image under folder" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $subimagelink_id && $(stripped_name) eq "link5" && $(name) eq "link5" && $(method) eq ""}} 1 "\n$test:\n [array get {}]\n " @@ -1372,41 +1372,41 @@ # download set l /XOWIKI-TEST/download/file/image.png set test [label "url" "toplevel image download" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $image_id && $(stripped_name) eq "image.png" && $(name) eq "file:image.png" && $(method) eq "download"}} 1 "\n$test:\n [array get {}]\n " # download via link #set l /XOWIKI-TEST/download/file/link5 #set test [label "url" "toplevel image download" $l] - #array set "" [$package_id item_info_from_url $l] + #array set "" [::$package_id item_info_from_url $l] #test hint "found $(item_id) should be $subimagelink_id" # ? {expr {$(item_id) == $subimagelink_id && $(stripped_name) eq "link5" # && $(name) eq "file:link5" && $(method) eq "download"}} 1 "\n$test:\n [array get {}]\n " # tag link set l /XOWIKI-TEST/tag/a set test [label "url" "tag query" $l] - array set "" [$package_id item_info_from_url -default_lang de $l] + array set "" [::$package_id item_info_from_url -default_lang de $l] ? {expr {$(item_id) != 0 && $(stripped_name) eq "weblog" && $(name) eq "en:weblog" && $(method) eq ""}} 1 "\n$test:\n [array get {}]\n" # missing: tag links to subdirectories # url without default lang set l /XOWIKI-TEST/parentpage set test [label "url" "toppage w/o de" $l] - array set "" [$package_id item_info_from_url -default_lang de $l] + array set "" [::$package_id item_info_from_url -default_lang de $l] ? {expr {$(item_id) == $parentpage_id && $(stripped_name) eq "parentpage"}} 1 "\n$test:\n [array get {}]\n " # prefixed name set l /XOWIKI-TEST/de:parentpage set test [label "url" "toppage prefixed eq default_lang" $l] - array set "" [$package_id item_info_from_url -default_lang de $l] + array set "" [::$package_id item_info_from_url -default_lang de $l] ? {expr {$(item_id) == $parentpage_id && $(stripped_name) eq "parentpage"}} 1 "\n$test:\n [array get {}]\n " set l /XOWIKI-TEST/de:parentpage set test [label "url" "toppage prefixed ne default_lang" $l] - array set "" [$package_id item_info_from_url -default_lang en $l] + array set "" [::$package_id item_info_from_url -default_lang en $l] ? {expr {$(item_id) == $parentpage_id && $(stripped_name) eq "parentpage"}} 1 "\n$test:\n [array get {}]\n " @@ -1418,25 +1418,25 @@ set l /XOWIKI-TEST/link2/testpage set test [label "url" "reference page over links to folder default-lang" $l] - array set "" [$package_id item_info_from_url -default_lang de $l] + array set "" [::$package_id item_info_from_url -default_lang de $l] ? {expr {$(item_id) == $testpage_id && $(stripped_name) eq "testpage" && $(name) eq "de:testpage"}} 1 "\n$test:\n [array get {}]\n " set l /XOWIKI-TEST/link2/de:testpage set test [label "url" "reference page over links to folder direct name" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $testpage_id && $(stripped_name) eq "testpage" && $(name) eq "de:testpage"}} 1 "\n$test:\n [array get {}]\n " set l /XOWIKI-TEST/download/file/link2/image2.png set test [label "url" "reference download image over links to folder" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $subimage_id && $(stripped_name) eq "image2.png" && $(name) eq "file:image2.png"}} 1 "\n$test:\n [array get {}]\n " set l /XOWIKI-TEST/link2/f3/page set test [label "url" "path contains link and references finally page" $l] - array set "" [$package_id item_info_from_url $l] + array set "" [::$package_id item_info_from_url $l] ? {expr {$(item_id) == $f3page_id && $(stripped_name) eq "page" && $(name) eq "en:page"}} 1 "\n$test:\n [array get {}]\n " @@ -1447,7 +1447,7 @@ #set l /XOWIKI-TEST/en/folder.form #set test [label "url" "site-wide-page top" $l] - #array set "" [$package_id item_info_from_url -default_lang de $l] + #array set "" [::$package_id item_info_from_url -default_lang de $l] #? {expr {$(item_id) == $parentpage_id && $(stripped_name) eq "parentpage"}} 1 "\n$test:\n [array get {}]\n " # link to page in other package Index: openacs-4/packages/xowiki/www/portlets/weblog-mini-calendar.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/portlets/Attic/weblog-mini-calendar.tcl,v diff -u -r1.20 -r1.20.2.1 --- openacs-4/packages/xowiki/www/portlets/weblog-mini-calendar.tcl 24 Dec 2017 12:51:38 -0000 1.20 +++ openacs-4/packages/xowiki/www/portlets/weblog-mini-calendar.tcl 8 May 2019 14:33:40 -0000 1.20.2.1 @@ -6,9 +6,9 @@ if {![info exists base_url] || $base_url eq ""} { if {![info exists page]} { - set page [$package_id get_parameter weblog_page] + set page [::$package_id get_parameter weblog_page] } - set base_url [$package_id pretty_link -parent_id $parent_id -path_encode false $page] + set base_url [::$package_id pretty_link -parent_id $parent_id -path_encode false $page] } set date [ns_queryget date] Index: openacs-4/packages/xowiki/www/xinha/insert-wlink.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/xinha/insert-wlink.tcl,v diff -u -r1.6.2.1 -r1.6.2.2 --- openacs-4/packages/xowiki/www/xinha/insert-wlink.tcl 30 Mar 2019 19:43:54 -0000 1.6.2.1 +++ openacs-4/packages/xowiki/www/xinha/insert-wlink.tcl 8 May 2019 14:33:40 -0000 1.6.2.2 @@ -43,7 +43,7 @@ $entry instvar name parent_id title formatted_date page_id set entry_package_id [$entry set package_id] - set page_link [$package_id pretty_link -parent_id $parent_id $name] + set page_link [::$package_id pretty_link -parent_id $parent_id $name] t1 add \ -title $title \ -name $name \ @@ -53,7 +53,7 @@ if {$entry_package_id == $package_id} { set label "" } else { - set label [$entry_package_id instance_name] + set label [::$entry_package_id instance_name] } [t1 last_child] set inherited $label } Index: openacs-4/packages/xowf/tcl/atjob-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/tcl/atjob-procs.tcl,v diff -u -r1.8 -r1.8.2.1 --- openacs-4/packages/xowf/tcl/atjob-procs.tcl 10 Oct 2018 12:58:28 -0000 1.8 +++ openacs-4/packages/xowf/tcl/atjob-procs.tcl 8 May 2019 14:38:41 -0000 1.8.2.1 @@ -53,14 +53,14 @@ set form_id [$class form_id -package_id $package_id -parent_id [${:object} parent_id]] if {$form_id != 0} { ::xo::db::CrClass get_instance_from_db -item_id $form_id - set instance_attributes [dict merge [$form_id default_instance_attributes] [list cmd ${:cmd}]] - set name [::xowiki::autoname new -name [$form_id name] -parent_id $owner_id] + set instance_attributes [dict merge [::$form_id default_instance_attributes] [list cmd ${:cmd}]] + set name [::xowiki::autoname new -name [::$form_id name] -parent_id $owner_id] set f [::xowiki::FormPage new -destroy_on_cleanup \ -package_id $package_id \ -parent_id $owner_id \ -name $name \ -title ${:priority} \ - -nls_language [$form_id nls_language] \ + -nls_language [::$form_id nls_language] \ -publish_status "production" \ -publish_date $ansi_time \ -creation_user ${:party_id} \ @@ -75,7 +75,7 @@ set form_name en:atjob-form set form_id [::xo::db::CrClass lookup -name $form_name -parent_id $parent_id] if {$form_id == 0} { - set page [$package_id resolve_page $form_name __m] + set page [::$package_id resolve_page $form_name __m] if {$page ne ""} {set form_id [$page item_id]} if {$form_id == 0} { ns_log error "Cannot lookup form $form_name; ignore request" @@ -85,7 +85,7 @@ } atjob proc run_jobs {item_ids} { - #my log "---run xowf jobs START" + #:log "---run xowf jobs START" set sql "select package_id, item_id, name, parent_id, publish_status, creation_user, revision_id, page_template, instance_attributes @@ -101,7 +101,7 @@ :log "--at we got [llength [$items children]] scheduled items" foreach item [$items children] { - #my log "--at *** job=[$item serialize] ***\n" + #:log "--at *** job=[$item serialize] ***\n" set owner_id [$item parent_id] set party_id [$item creation_user] set __ia [$item instance_attributes] @@ -117,10 +117,10 @@ # We assume, the package is from the xowiki family; make sure, the url looks like real ::xo::Package initialize \ - -package_id [$owner_id package_id] \ + -package_id [::$owner_id package_id] \ -user_id $party_id \ -init_url 0 -actual_query "" - $package_id set_url -url [$package_id package_url][$owner_id name] + $package_id set_url -url [::$package_id package_url][::$owner_id name] :log "--at executing atjob $cmd" if {[catch {eval $owner_id $cmd} errorMsg]} { @@ -136,7 +136,7 @@ } atjob proc check {{-with_older false}} { - #my log "--at START" + #:log "--at START" # # check, if there are jobs scheduled for execution # Index: openacs-4/packages/xowf/tcl/test-item-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/tcl/test-item-procs.tcl,v diff -u -r1.7 -r1.7.2.1 --- openacs-4/packages/xowf/tcl/test-item-procs.tcl 30 Apr 2018 09:48:51 -0000 1.7 +++ openacs-4/packages/xowf/tcl/test-item-procs.tcl 8 May 2019 14:38:41 -0000 1.7.2.1 @@ -187,7 +187,7 @@ set intro_text [:get_named_sub_component_value text] append form "