Index: openacs-4/packages/acs-bootstrap-installer/db-init-checks-postgresql.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-bootstrap-installer/db-init-checks-postgresql.tcl,v diff -u -r1.13 -r1.13.10.1 --- openacs-4/packages/acs-bootstrap-installer/db-init-checks-postgresql.tcl 10 Jan 2007 21:22:02 -0000 1.13 +++ openacs-4/packages/acs-bootstrap-installer/db-init-checks-postgresql.tcl 27 Aug 2013 11:01:47 -0000 1.13.10.1 @@ -47,7 +47,7 @@ ## Make sure the __test__() function is dropped if it exists - if {![empty_string_p [ns_db 0or1row $db "select proname from pg_proc where proname = '__test__' and pronargs = 0"]]} { + if {[ns_db 0or1row $db "select proname from pg_proc where proname = '__test__' and pronargs = 0"] ne ""} { catch { ns_db dml $db "drop function __test__();" } } Index: openacs-4/packages/acs-bootstrap-installer/installer/install.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-bootstrap-installer/installer/install.tcl,v diff -u -r1.11.8.1 -r1.11.8.2 --- openacs-4/packages/acs-bootstrap-installer/installer/install.tcl 27 Aug 2013 10:18:17 -0000 1.11.8.1 +++ openacs-4/packages/acs-bootstrap-installer/installer/install.tcl 27 Aug 2013 11:01:48 -0000 1.11.8.2 @@ -8,7 +8,7 @@ # Default all system emails to the administrators email foreach var_name {system_owner admin_owner host_administrator outgoing_sender new_registrations} { - if { [empty_string_p [set $var_name]] } { + if { [set $var_name] eq "" } { set $var_name $email } } @@ -99,12 +99,11 @@ if { !$user_id } { - global errorInfo install_return 200 "Unable to Create Administrator" " Unable to create the site-wide administrator: -
+[ns_quotehtml $errorInfo]
Please try again. Index: openacs-4/packages/acs-bootstrap-installer/tcl/20-db-bootstrap-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-bootstrap-installer/tcl/20-db-bootstrap-procs.tcl,v diff -u -r1.8 -r1.8.10.1 --- openacs-4/packages/acs-bootstrap-installer/tcl/20-db-bootstrap-procs.tcl 10 Jan 2007 21:22:03 -0000 1.8 +++ openacs-4/packages/acs-bootstrap-installer/tcl/20-db-bootstrap-procs.tcl 27 Aug 2013 11:01:48 -0000 1.8.10.1 @@ -138,7 +138,7 @@ ns_log Notice "$proc_name: For database '$dbn', the following pools are available: $dbn_pools" } - if { [empty_string_p [db_available_pools $default_dbn]] } { + if { [db_available_pools $default_dbn] eq "" } { ns_log Error "$proc_name: No pools specified for database '$default_dbn'." set old_availablepool_p 1 } Index: openacs-4/packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher-procs.tcl,v diff -u -r1.42 -r1.42.2.1 --- openacs-4/packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher-procs.tcl 29 Mar 2013 14:05:28 -0000 1.42 +++ openacs-4/packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher-procs.tcl 27 Aug 2013 11:01:48 -0000 1.42.2.1 @@ -86,7 +86,7 @@ # db_qd_log QDDebug "The RDBMS_PATTERN is [db_rdbms_get_type $rdbms_pattern] - [db_rdbms_get_version $rdbms_pattern]" # If the pattern is for all RDBMS, then yeah, compatible - if {[empty_string_p [db_rdbms_get_type $rdbms_test]]} { + if {[db_rdbms_get_type $rdbms_test] eq ""} { return 1 } @@ -97,7 +97,7 @@ } # If the pattern has no version - if {[empty_string_p [db_rdbms_get_version $rdbms_pattern]]} { + if {[db_rdbms_get_version $rdbms_pattern] eq ""} { return 1 } @@ -194,11 +194,11 @@ # We ASSUME that both queries are at least compatible. # Otherwise this is a stupid exercise - if {[empty_string_p [db_rdbms_get_version $rdbms_1]]} { + if {[db_rdbms_get_version $rdbms_1] eq ""} { return $query_2 } - if {[empty_string_p [db_rdbms_get_version $rdbms_2]]} { + if {[db_rdbms_get_version $rdbms_2] eq ""} { return $query_1 } Index: openacs-4/packages/acs-core-docs/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/index.adp,v diff -u -r1.24 -r1.24.6.1 --- openacs-4/packages/acs-core-docs/www/index.adp 22 Jan 2010 12:01:17 -0000 1.24 +++ openacs-4/packages/acs-core-docs/www/index.adp 27 Aug 2013 10:52:32 -0000 1.24.6.1 @@ -49,13 +49,13 @@ "[acs_package_root_dir $package_key]/www/doc/index.*"] 0] if { [file exists $index_page] } { - if {![empty_string_p $pretty_name]} { + if {$pretty_name ne ""} { adp_puts "[ns_quotehtml $::errorInfo]
-Many functions have a single return value. For instance, empty_string_p
+Many functions have a single return value. For instance, util_email_valid_p
returns a number: 1 or 0. Other functions need to return a composite value.
For instance, consider a function that looks up a user's name and email
address, given an ID. One way to implement this is to return a three-element
Index: openacs-4/packages/acs-core-docs/www/security-notes.html
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/security-notes.html,v
diff -u -r1.47.4.1 -r1.47.4.2
--- openacs-4/packages/acs-core-docs/www/security-notes.html 21 Aug 2013 10:19:30 -0000 1.47.4.1
+++ openacs-4/packages/acs-core-docs/www/security-notes.html 27 Aug 2013 10:52:33 -0000 1.47.4.2
@@ -27,7 +27,7 @@
if { [ad_secure_conn_p] && ![ad_login_page] } {
set s_token_cookie [ns_urldecode [ad_get_cookie "ad_secure_token"]]
- if { [empty_string_p $s_token_cookie] || [string compare $s_token_cookie [lindex [sec_get_session_info $session_id] 2]] != 0 } {
+ if { $s_token_cookie eq "" || $s_token_cookie ne [lindex [sec_get_session_info $session_id] 2] } {
# token is incorrect or nonexistent, so we force relogin.
ad_returnredirect "/register/index?return_url=[ns_urlencode [ad_conn url]?[ad_conn query]]"
}
Index: openacs-4/packages/acs-core-docs/www/tutorial-categories.html
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-categories.html,v
diff -u -r1.13.4.1 -r1.13.4.2
--- openacs-4/packages/acs-core-docs/www/tutorial-categories.html 21 Aug 2013 10:19:31 -0000 1.13.4.1
+++ openacs-4/packages/acs-core-docs/www/tutorial-categories.html 27 Aug 2013 10:52:33 -0000 1.13.4.2
@@ -155,7 +155,7 @@
{submit:text(submit) {label "Set Mode"}}
} -on_submit {
parameter::set_value -parameter "EnableCategoriesP" -value $enabled_p
- if {![empty_string_p $return_url]} {
+ if {$return_url ne ""} {
ns_returnredirect $return_url
}
}
@@ -221,9 +221,9 @@
# Site-Wide Categories
if { $use_categories_p == 1} {
set package_url [ad_conn package_url]
- if { ![empty_string_p $category_id] } {
+ if { $category_id ne "" } {
set category_name [category::get_name $category_id]
- if { [empty_string_p $category_name] } {
+ if { $category_name eq "" } {
ad_return_exception_page 404 "No such category" "Site-wide \
Category with ID $category_id doesn't exist"
return
Index: openacs-4/packages/acs-core-docs/www/tutorial-wysiwyg-editor.html
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-wysiwyg-editor.html,v
diff -u -r1.8.4.1 -r1.8.4.2
--- openacs-4/packages/acs-core-docs/www/tutorial-wysiwyg-editor.html 21 Aug 2013 10:19:33 -0000 1.8.4.1
+++ openacs-4/packages/acs-core-docs/www/tutorial-wysiwyg-editor.html 27 Aug 2013 10:52:33 -0000 1.8.4.2
@@ -80,7 +80,7 @@
{submit:text(submit) {label "Change"}}
} -on_submit {
parameter::set_value -parameter "UseWysiwygP" -value $enabled_p
- if {![empty_string_p $return_url]} {
+ if {$return_url ne ""} {
ns_returnredirect $return_url
}
}
Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/programming-with-aolserver.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/programming-with-aolserver.xml,v
diff -u -r1.6 -r1.6.12.1
--- openacs-4/packages/acs-core-docs/www/xml/developers-guide/programming-with-aolserver.xml 17 Jul 2006 05:38:37 -0000 1.6
+++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/programming-with-aolserver.xml 27 Aug 2013 10:52:33 -0000 1.6.12.1
@@ -112,7 +112,7 @@