Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v diff -u -N -r1.518 -r1.519 --- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 1 May 2018 08:37:12 -0000 1.518 +++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 9 May 2018 15:33:34 -0000 1.519 @@ -640,7 +640,7 @@ # mapped with the same name. set tree_id [lindex $tree_ids 0] array set data [category_tree::get_data $tree_id] - set categories {} + set categories [list] if {[info exists :__category_map]} {array set cm ${:__category_map}} foreach category [::xowiki::Category get_category_infos -tree_id $tree_id] { lassign $category category_id category_name deprecated_p level @@ -739,7 +739,7 @@ FormPage instproc map_values {map_type values} { # Map a list of values (for multi-valued form fields) # :log "map_values $map_type, $values" - set mapped_values {} + set mapped_values [list] foreach value $values {lappend mapped_values [:map_value $map_type $value]} return $mapped_values } @@ -802,7 +802,7 @@ # :log "+++ starting with instance_attributes [:instance_attributes]" array set use ${:__instance_attribute_map} array set multiple_index [list category 2 party_id 1 file 1] - set ia {} + set ia [list] foreach {name value} [:instance_attributes] { #:log "marshall check $name $value [info exists use($name)]" if {[info exists use($name)]} { @@ -835,7 +835,7 @@ } ad_try { acs_user::get -user_id $party_id -array info - set result {} + set result [list] foreach a {username email first_names last_name screen_name url} { lappend result $a $info($a) } @@ -987,7 +987,7 @@ # Apply reverse_map_value to a list of values (for multi-valued # form fields) :upvar $category_ids_name category_ids - set mapped_values {} + set mapped_values [list] foreach value $values { lappend mapped_values [:reverse_map_value \ -creation_user $creation_user -create_user_ids $create_user_ids \ @@ -1027,7 +1027,7 @@ # # The function will compute the category_ids, which are were used # to categorize this objects in the source instance. - set category_ids {} + set category_ids [list] #:msg "[:name] check cm=[info exists ::__xowiki_reverse_category_map] && iam=[info exists :__instance_attribute_map]" @@ -1039,7 +1039,7 @@ # # replace all symbolic category values by the mapped IDs # - set ia {} + set ia [list] array set use ${:__instance_attribute_map} array set multiple_index [list category 2 party_id 1 file 1] foreach {name value} [:instance_attributes] { @@ -2451,7 +2451,7 @@ # available variables. # # compute list of possible variables - set __varlist {} + set __varlist [list] set __template_variables__ "