[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[2939] trunk
- Subject: SF.net SVN: ledger-smb:[2939] trunk
- From: ..hidden..
- Date: Tue, 02 Mar 2010 02:20:44 +0000
Revision: 2939
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2939&view=rev
Author: einhverfr
Date: 2010-03-02 02:20:44 +0000 (Tue, 02 Mar 2010)
Log Message:
-----------
Correcting issue with Alexey's patch
Modified Paths:
--------------
trunk/LedgerSMB/Auth/DB.pm
trunk/LedgerSMB/DBTest.pm
trunk/README.tests
Modified: trunk/LedgerSMB/Auth/DB.pm
===================================================================
--- trunk/LedgerSMB/Auth/DB.pm 2010-03-01 20:21:44 UTC (rev 2938)
+++ trunk/LedgerSMB/Auth/DB.pm 2010-03-02 02:20:44 UTC (rev 2939)
@@ -293,7 +293,7 @@
# Handling of HTTP Basic Auth headers
my $auth = $ENV{'HTTP_AUTHORIZATION'};
# Send HTTP 401 if the authorization header is missing
- credential_prompt unless ($auth);
+ credential_prompt() unless ($auth);
$auth =~ s/Basic //i; # strip out basic authentication preface
$auth = MIME::Base64::decode($auth);
my $return_value = {};
Modified: trunk/LedgerSMB/DBTest.pm
===================================================================
--- trunk/LedgerSMB/DBTest.pm 2010-03-01 20:21:44 UTC (rev 2938)
+++ trunk/LedgerSMB/DBTest.pm 2010-03-02 02:20:44 UTC (rev 2939)
@@ -100,6 +100,9 @@
my $sth = $self->{_dbh}->prepare('SELECT 1');
$sth->execute;
my ($retval) = $sth->fetchrow_array;
+ if (!$retval){
+ $self->{_dbh}->rollback;
+ }
return $retval;
}
Modified: trunk/README.tests
===================================================================
--- trunk/README.tests 2010-03-01 20:21:44 UTC (rev 2938)
+++ trunk/README.tests 2010-03-02 02:20:44 UTC (rev 2939)
@@ -60,3 +60,22 @@
test cases are run. This can be a useful way of installing the for production
use, though currently an admin user is not created in this process and would
need to be created manually.
+
+When a database is created, these environment variables are used to control
+flow. If these are not set, relevant portions are skipped.
+
+Admin user creation:
+----------------------
+LSMB_ADMIN_USERNAME username for admin user
+LSMB_ADMIN_PASSWORD password for admin user
+ LSMB_ADMIN_FNAME Admin's first name
+ LSMB_ADMIN_LNAME Admin's last name
+ LSMB_COUNTRY_CODE Country code for administrator and for loading chart of
+ accounts
+
+Chart of accounts loading
+-------------------------
+ LSMB_LOAD_COA name of the Chart of Accounts file (minus the extension)
+ LSMB_LOAD_GIFI name of the GIFI file (minus the extension)
+LSMB_COUNTRY_CODE Country code for administrator and for loading chart of
+ accounts
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.