Index: openacs-4/packages/acs-bootstrap-installer/installer/tcl/0-acs-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-bootstrap-installer/installer/tcl/0-acs-init.tcl,v diff -u -N -r1.2.2.3 -r1.2.2.4 --- openacs-4/packages/acs-bootstrap-installer/installer/tcl/0-acs-init.tcl 10 Sep 2015 08:21:15 -0000 1.2.2.3 +++ openacs-4/packages/acs-bootstrap-installer/installer/tcl/0-acs-init.tcl 30 Nov 2015 12:57:42 -0000 1.2.2.4 @@ -12,12 +12,28 @@ # Determine, under which server we are running # set ::acs::useNaviServer [expr {[ns_info name] eq "NaviServer"}] + # - # Handling NaviServer deprecated ns_info subcommands. + # Initialize the list of known database types . User code should use the database + # API routine db_known_database_types rather than reference the nsv list directly. + # We might change the way this is implemented later. Each database type is + # represented by a list consisting of the internal name, driver name, and + # "pretty name" (used by the APM to list the available database engines that + # one's package can choose to support). The driver name and "pretty name" happen + # to be the same for Postgres and Oracle but let's not depend on that being true + # in all cases... # + + set ::acs::known_database_types { + {oracle Oracle Oracle} + {postgresql PostgreSQL PostgreSQL} + } + + # + # Enable / disable features depending on availability + # set ::acs::pageroot [expr {$::acs::useNaviServer ? [ns_server pagedir] : [ns_info pageroot]}] set ::acs::tcllib [expr {$::acs::useNaviServer ? [ns_server tcllib] : [ns_info tcllib]}] - # set ::acs::rootdir [file dirname [string trimright $::acs::tcllib "/"]] set ::acs::useNsfProc [expr {[info commands ::nsf::proc] ne ""}] }