load database config from the config file in preference to Constants.pm
authorTony Cook <tony@develop-help.com>
Mon, 1 Mar 2010 05:29:57 +0000 (05:29 +0000)
committertony <tony@45cb6cf1-00bc-42d2-bb5a-07f51df49f94>
Mon, 1 Mar 2010 05:29:57 +0000 (05:29 +0000)
commitd2473dc20ced1c55ea87d6ac668cca5ba1479b16
treec1adc61f9f0c0ec6dfb30d33c382a50d0b19606c
parent52ebf5ca58e951cec09f1f809544695e330da273
load database config from the config file in preference to Constants.pm

add BSE::API::bse_init() to initialize the database (and anything else
that needs it in the future)

adjust Squirrel::{Table,Row} to not fetch the db handle until runtime

adjust command-line scripts to use bse_init.

adjust BSE::Request to initialize the db

make datadump.pl require a logged in user

make the regen code pass the config to the shop gen
20 files changed:
localinst.perl
site/cgi-bin/admin/datadump.pl
site/cgi-bin/admin/makeIndex.pl
site/cgi-bin/bse.cfg
site/cgi-bin/modules/BSE/API.pm
site/cgi-bin/modules/BSE/DB.pm
site/cgi-bin/modules/BSE/DB/Mysql.pm
site/cgi-bin/modules/BSE/Request/Base.pm
site/cgi-bin/modules/Squirrel/Row.pm
site/cgi-bin/modules/Squirrel/Table.pm
site/cgi-bin/modules/Util.pm
site/util/bse_back.pl
site/util/bse_storage.pl
site/util/bsexlsprod.pl
site/util/gen.pl
site/util/initial.pl
site/util/loaddata.pl
site/util/update_title_summary.pl
site/util/upgrade_mysql.pl
t/t081cfg.t