Index: openacs-4/packages/acs-tcl/tcl/deprecated-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/deprecated-procs.tcl,v diff -u -r1.22 -r1.23 --- openacs-4/packages/acs-tcl/tcl/deprecated-procs.tcl 25 Jul 2018 17:44:25 -0000 1.22 +++ openacs-4/packages/acs-tcl/tcl/deprecated-procs.tcl 25 Jul 2018 17:49:26 -0000 1.23 @@ -9,7 +9,7 @@ ns_section ns/server/${server}/acs ns_param WithDeprecatedCode 0 - + @cvs-id $Id$ } @@ -32,9 +32,9 @@ # # ad_set_typed_form_variable_filter /my_module/* {a_id number} {b_id word} {*_id integer} # - # For all pages under /my_module, set_form_variables would set - # $a_id only if it was number, and $b_id only if it was a 'word' - # (a string that contains only letters, numbers, dashes, and + # For all pages under /my_module, set_form_variables would set + # $a_id only if it was number, and $b_id only if it was a 'word' + # (a string that contains only letters, numbers, dashes, and # underscores), and all other variables that match the pattern # *_id would be set only if they were integers. # @@ -46,7 +46,7 @@ # return 1 if the value is a valid $type_name, or 0 otherwise. # # There's also a special datatype named 'nocheck', which will - # return success regardless of the value. (See the docs for + # return success regardless of the value. (See the docs for # ad_var_type_check_${type_name}_p to see how this might be # useful.) # @@ -74,15 +74,15 @@ return filter_ok } -ad_proc -deprecated ad_dbclick_check_dml { +ad_proc -deprecated ad_dbclick_check_dml { {-bind ""} - statement_name table_name id_column_name generated_id return_url insert_dml + statement_name table_name id_column_name generated_id return_url insert_dml } { This proc is used for pages using double click protection. table_name is table_name for which we are checking whether the double click occurred. id_column_name is the name of the id table column. generated_id is the generated id, which is supposed to have - been generated on the previous page. return_url is url to which this + been generated on the previous page. return_url is url to which this procedure will return redirect in the case of successful insertion in the database. insert_sql is the sql insert statement. if data is ok this procedure will insert data into the database in a double click @@ -94,29 +94,29 @@ if { $bind ne "" } { db_dml $statement_name $insert_dml -bind $bind } else { - db_dml $statement_name $insert_dml + db_dml $statement_name $insert_dml } } errmsg] } { # Oracle choked on the insert - + # detect double click if { [db_0or1row double_click_check " - + select 1 as one from $table_name where $id_column_name = :generated_id - + " -bind [ad_tcl_vars_to_ns_set generated_id]] } { ad_returnredirect $return_url return } - + ns_log Error "[info script] choked. Oracle returned error: $errmsg" ad_return_error "Error in insert" " - We were unable to do your insert in the database. + We were unable to do your insert in the database. Here is the error that was returned:

@@ -142,7 +142,7 @@ } elseif { $t_or_f == "f" || $t_or_f eq "F" } { return "No" } else { - # Note that we can't compare default to the empty string as in + # Note that we can't compare default to the empty string as in # many cases, we are going want the default to be the empty # string if { $default eq "default" } { @@ -153,16 +153,16 @@ } } -ad_proc -deprecated ad_export_vars { +ad_proc -deprecated ad_export_vars { -form:boolean {-exclude {}} {-override {}} {include {}} } { - Note This proc is deprecated in favor of - export_vars. They're very similar, but + Note This proc is deprecated in favor of + export_vars. They're very similar, but export_vars have a number of advantages: - +