3a1d7b36332d052040b89497d824e32c8dd3ede6
1 #
2 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
3 # This module is free software, and you may redistribute it and/or modify
4 # under the same terms as Python, so long as this copyright message and
5 # disclaimer are retained in their original form.
6 #
7 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
8 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
9 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
10 # POSSIBILITY OF SUCH DAMAGE.
11 #
12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 #
18 # $Id: __init__.py,v 1.9 2001-12-12 02:30:51 richard Exp $
20 __all__ = []
22 try:
23 import anydbm, dumbdbm
24 # dumbdbm in python 2,2b2, 2.1.1 and earlier is seriously broken
25 assert anydbm._defaultmod != dumbdbm
26 del anydbm
27 del dumbdbm
28 import back_anydbm
29 anydbm = back_anydbm
30 __all__.append('anydbm')
31 except AssertionError:
32 del back_anydbm
33 except ImportError:
34 pass
36 try:
37 import back_bsddb
38 bsddb = back_bsddb
39 __all__.append('bsddb')
40 except ImportError:
41 pass
43 try:
44 import back_bsddb3
45 bsddb3 = back_bsddb3
46 __all__.append('bsddb3')
47 except ImportError:
48 pass
50 #
51 # $Log: not supported by cvs2svn $
52 # Revision 1.8 2001/12/10 22:20:01 richard
53 # Enabled transaction support in the bsddb backend. It uses the anydbm code
54 # where possible, only replacing methods where the db is opened (it uses the
55 # btree opener specifically.)
56 # Also cleaned up some change note generation.
57 # Made the backends package work with pydoc too.
58 #
59 # Revision 1.7 2001/12/10 00:57:38 richard
60 # From CHANGES:
61 # . Added the "display" command to the admin tool - displays a node's values
62 # . #489760 ] [issue] only subject
63 # . fixed the doc/index.html to include the quoting in the mail alias.
64 #
65 # Also:
66 # . fixed roundup-admin so it works with transactions
67 # . disabled the back_anydbm module if anydbm tries to use dumbdbm
68 #
69 # Revision 1.6 2001/08/07 00:24:42 richard
70 # stupid typo
71 #
72 # Revision 1.5 2001/08/07 00:15:51 richard
73 # Added the copyright/license notice to (nearly) all files at request of
74 # Bizar Software.
75 #
76 #
77 #
78 # vim: set filetype=python ts=4 sw=4 et si