summaryrefslogtreecommitdiff
path: root/perl/Wallet/ACL.pm
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2008-01-22 22:46:34 +0000
committerRuss Allbery <rra@stanford.edu>2008-01-22 22:46:34 +0000
commit8014b90805aa85adf1d1155cbb07fa77e5c58f62 (patch)
tree12368474af83534d7a9ba0f30a222e35a55d33df /perl/Wallet/ACL.pm
parent6bc84715b9e490500f4bdab1417c27d0e9d31e5c (diff)
Add a Wallet::Database class that now holds the database connection code
previously in Wallet::Server. Remove all the attribute setting on database handles in the other classes since Wallet::Database handles that initialization.
Diffstat (limited to 'perl/Wallet/ACL.pm')
-rw-r--r--perl/Wallet/ACL.pm10
1 files changed, 2 insertions, 8 deletions
diff --git a/perl/Wallet/ACL.pm b/perl/Wallet/ACL.pm
index dab5581..b9c710c 100644
--- a/perl/Wallet/ACL.pm
+++ b/perl/Wallet/ACL.pm
@@ -2,7 +2,7 @@
# $Id$
#
# Written by Russ Allbery <rra@stanford.edu>
-# Copyright 2007 Board of Trustees, Leland Stanford Jr. University
+# Copyright 2007, 2008 Board of Trustees, Leland Stanford Jr. University
#
# See LICENSE for licensing terms.
@@ -22,7 +22,7 @@ use POSIX qw(strftime);
# This version should be increased on any code change to this module. Always
# use two digits for the minor version with a leading zero if necessary so
# that it will sort properly.
-$VERSION = '0.04';
+$VERSION = '0.05';
##############################################################################
# Constructors
@@ -34,9 +34,6 @@ $VERSION = '0.04';
# doesn't exist, throws an exception.
sub new {
my ($class, $id, $dbh) = @_;
- $dbh->{RaiseError} = 1;
- $dbh->{PrintError} = 0;
- $dbh->{AutoCommit} = 0;
my ($sql, $data, $name);
if ($id =~ /^\d+\z/) {
$sql = 'select ac_id, ac_name from acls where ac_id = ?';
@@ -70,9 +67,6 @@ sub create {
if ($name =~ /^\d+\z/) {
die "ACL name may not be all numbers\n";
}
- $dbh->{RaiseError} = 1;
- $dbh->{PrintError} = 0;
- $dbh->{AutoCommit} = 0;
$time ||= time;
my $id;
eval {