Index: openacs-4/packages/acs-admin/lib/become.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/lib/become.tcl,v diff -u -r1.3.12.1 -r1.3.12.2 --- openacs-4/packages/acs-admin/lib/become.tcl 10 Sep 2015 08:21:00 -0000 1.3.12.1 +++ openacs-4/packages/acs-admin/lib/become.tcl 2 Jan 2016 21:14:09 -0000 1.3.12.2 @@ -14,7 +14,7 @@ # Get the password and user ID -if {![db_0or1row password "select password from users where user_id=$user_id"]} { +if {![db_0or1row password {select password from users where user_id = :user_id}]} { ad_return_error "Couldn't find user $user_id" "Couldn't find user $user_id." return } Index: openacs-4/packages/acs-admin/www/apm/version-callback-add-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-callback-add-edit.tcl,v diff -u -r1.11.2.1 -r1.11.2.2 --- openacs-4/packages/acs-admin/www/apm/version-callback-add-edit.tcl 10 Sep 2015 08:21:03 -0000 1.11.2.1 +++ openacs-4/packages/acs-admin/www/apm/version-callback-add-edit.tcl 2 Jan 2016 21:14:09 -0000 1.11.2.2 @@ -10,7 +10,11 @@ {type ""} } -db_1row package_version_info "select pretty_name, version_name from apm_package_version_info where version_id = :version_id" +db_1row package_version_info { + select pretty_name, version_name + from apm_package_version_info + where version_id = :version_id +} set return_url [export_vars -base version-callbacks { version_id }] Index: openacs-4/packages/acs-admin/www/apm/version-callback-invoke.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-callback-invoke.tcl,v diff -u -r1.5.2.2 -r1.5.2.3 --- openacs-4/packages/acs-admin/www/apm/version-callback-invoke.tcl 10 Sep 2015 08:21:03 -0000 1.5.2.2 +++ openacs-4/packages/acs-admin/www/apm/version-callback-invoke.tcl 2 Jan 2016 21:14:09 -0000 1.5.2.3 @@ -9,7 +9,11 @@ type:notnull } -db_1row package_version_info "select pretty_name, version_name from apm_package_version_info where version_id = :version_id" +db_1row package_version_info { + select pretty_name, version_name + from apm_package_version_info + where version_id = :version_id +} set return_url [export_vars -base version-callbacks { version_id }] Index: openacs-4/packages/acs-admin/www/apm/version-callbacks.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-callbacks.tcl,v diff -u -r1.8.2.1 -r1.8.2.2 --- openacs-4/packages/acs-admin/www/apm/version-callbacks.tcl 10 Sep 2015 08:21:03 -0000 1.8.2.1 +++ openacs-4/packages/acs-admin/www/apm/version-callbacks.tcl 2 Jan 2016 21:14:09 -0000 1.8.2.2 @@ -7,10 +7,16 @@ version_id:naturalnum,notnull } -db_1row package_version_info "select pretty_name, version_name from apm_package_version_info where version_id = :version_id" +db_1row package_version_info { + select pretty_name, version_name + from apm_package_version_info + where version_id = :version_id +} set page_title "\#acs-admin.Tcl_Callbacks\#" -set context [list [list "." "\#acs-admin.Package_Manager\#"] [list [export_vars -base version-view { version_id }] "$pretty_name $version_name"] $page_title] +set context [list [list "." "\#acs-admin.Package_Manager\#"] \ + [list [export_vars -base version-view { version_id }] "$pretty_name $version_name"] \ + $page_title] set unused_callback_types [apm_unused_callback_types -version_id $version_id] Index: openacs-4/packages/acs-admin/www/apm/version-i18n-process.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-i18n-process.tcl,v diff -u -r1.5.2.1 -r1.5.2.2 --- openacs-4/packages/acs-admin/www/apm/version-i18n-process.tcl 10 Sep 2015 08:21:05 -0000 1.5.2.1 +++ openacs-4/packages/acs-admin/www/apm/version-i18n-process.tcl 2 Jan 2016 21:14:10 -0000 1.5.2.2 @@ -11,7 +11,11 @@ {file_action:multiple} } -db_1row package_version_info "select pretty_name, version_name from apm_package_version_info where version_id = :version_id" +db_1row package_version_info { + select pretty_name, version_name + from apm_package_version_info + where version_id = :version_id +} set page_title "Internationalization of $pretty_name $version_name" set context_bar [ad_context_bar $page_title] Index: openacs-4/packages/acs-admin/www/apm/version-i18n.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-i18n.tcl,v diff -u -r1.14.2.1 -r1.14.2.2 --- openacs-4/packages/acs-admin/www/apm/version-i18n.tcl 10 Sep 2015 08:21:05 -0000 1.14.2.1 +++ openacs-4/packages/acs-admin/www/apm/version-i18n.tcl 2 Jan 2016 21:14:10 -0000 1.14.2.2 @@ -13,7 +13,11 @@ {file_type adp} } -db_1row package_version_info "select pretty_name, version_name from apm_package_version_info where version_id = :version_id" +db_1row package_version_info { + select pretty_name, version_name + from apm_package_version_info + where version_id = :version_id +} set page_title "Message catalog lookups for adp and tcl files of $pretty_name $version_name" set context_bar [ad_context_bar $page_title] Index: openacs-4/packages/acs-admin/www/users/complex-search.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/users/complex-search.tcl,v diff -u -r1.15.2.2 -r1.15.2.3 --- openacs-4/packages/acs-admin/www/users/complex-search.tcl 10 Sep 2015 11:23:49 -0000 1.15.2.2 +++ openacs-4/packages/acs-admin/www/users/complex-search.tcl 2 Jan 2016 21:14:10 -0000 1.15.2.3 @@ -103,8 +103,11 @@ if {$limit_to_users_in_group_id ne "" && ![regexp {[^-0-9]} $limit_to_users_in_group_id] } { - set group_name [db_string user_group_name_from_id \ - "select group_name from groups where group_id = :limit_to_users_in_group_id"] + set group_name [db_string user_group_name_from_id { + select group_name + from groups + where group_id = :limit_to_users_in_group_id + }] incr rowcount set criteria:[set rowcount](data) \ "Is a member of '$group_name'" @@ -194,16 +197,18 @@ if { $limit_to_users_in_group_id ne "" } { - set query "select distinct first_names, last_name, email, member_state, email_verified_p, cu.user_id + set query { + select distinct first_names, last_name, email, member_state, email_verified_p, cu.user_id from cc_users cu, group_member_map gm where (cu.user_id = gm.member_id - and gm.group_id = :limit_to_users_in_group_id)" + and gm.group_id = :limit_to_users_in_group_id) + } if {[llength $where_clause] > 0} { append query \ "\n$where_conjunction [join $where_clause "\n$where_conjunction "]" } } else { - set query "select user_id, email_verified_p, first_names, last_name, email, member_state from cc_users" + set query {select user_id, email_verified_p, first_names, last_name, email, member_state from cc_users} if {[llength $where_clause] > 0} { append query "\nwhere [join $where_clause "\n$where_conjunction "]" } Index: openacs-4/packages/acs-admin/www/users/member-state-change.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/users/member-state-change.tcl,v diff -u -r1.17.2.1 -r1.17.2.2 --- openacs-4/packages/acs-admin/www/users/member-state-change.tcl 10 Sep 2015 08:21:09 -0000 1.17.2.1 +++ openacs-4/packages/acs-admin/www/users/member-state-change.tcl 2 Jan 2016 21:14:10 -0000 1.17.2.2 @@ -70,12 +70,10 @@ switch $email_verified_p { "t" { - db_exec_plsql approve_email " - begin acs_user.approve_email ( user_id => :user_id ); end;" + db_exec_plsql approve_email {} } "f" { - db_exec_plsql unapprove_email " - begin acs_user.unapprove_email ( user_id => :user_id ); end;" + db_exec_plsql unapprove_email {} } } } errmsg]} { @@ -86,8 +84,8 @@ callback acs_admin::member_state_change -member_state $member_state -user_id $user_id set admin_user_id [ad_conn user_id] -set email_from [db_string admin_email "select email from parties where party_id = :admin_user_id"] -set subject "$action" +set email_from [db_string admin_email {select email from parties where party_id = :admin_user_id}] +set subject $action set message $email_message if {$return_url eq ""} { Index: openacs-4/packages/acs-admin/www/users/merge-confirm.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/users/merge-confirm.tcl,v diff -u -r1.4.2.2 -r1.4.2.3 --- openacs-4/packages/acs-admin/www/users/merge-confirm.tcl 2 Jan 2016 13:50:16 -0000 1.4.2.2 +++ openacs-4/packages/acs-admin/www/users/merge-confirm.tcl 2 Jan 2016 21:14:10 -0000 1.4.2.3 @@ -12,8 +12,8 @@ context:onevalue } -validate { if_diff_authority { - set from_authority_id [db_string gettoa "select authority_id from cc_users where user_id = :from_user_id"] - set to_authority_id [db_string getfroma "select authority_id from cc_users where user_id = :to_user_id"] + set from_authority_id [db_string gettoa {select authority_id from cc_users where user_id = :from_user_id}] + set to_authority_id [db_string getfroma {select authority_id from cc_users where user_id = :to_user_id}] if { $from_authority_id ne $to_authority_id } { ad_complain "Merge only works for users from the same authority" } Index: openacs-4/packages/acs-admin/www/users/merge-final.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/users/merge-final.tcl,v diff -u -r1.6.2.1 -r1.6.2.2 --- openacs-4/packages/acs-admin/www/users/merge-final.tcl 10 Sep 2015 08:21:09 -0000 1.6.2.1 +++ openacs-4/packages/acs-admin/www/users/merge-final.tcl 2 Jan 2016 21:14:10 -0000 1.6.2.2 @@ -12,8 +12,8 @@ context:onevalue } -validate { if_diff_authority { - set from_authority_id [db_string gettoa "select authority_id from cc_users where user_id = :from_user_id"] - set to_authority_id [db_string getfroma "select authority_id from cc_users where user_id = :to_user_id"] + set from_authority_id [db_string gettoa {select authority_id from cc_users where user_id = :from_user_id}] + set to_authority_id [db_string getfroma {select authority_id from cc_users where user_id = :to_user_id}] if { $from_authority_id ne $to_authority_id } { ad_complain "Merge only works for users of the same authority" } @@ -32,8 +32,9 @@ if { !$merge_p } { ad_returnredirect "/acs-admin/users" } else { - set final_results [callback merge::MergePackageUser -from_user_id $from_user_id -to_user_id $to_user_id] - + set final_results [callback merge::MergePackageUser \ + -from_user_id $from_user_id \ + -to_user_id $to_user_id] set results "