Mercurial > p > roundup > code
comparison roundup/backends/__init__.py @ 440:de5bf4191f11
Enabled transaction support in the bsddb backend.
It uses the anydbm code where possible, only replacing methods where
the db is opened (it uses the btree opener specifically.)
Also cleaned up some change note generation.
Made the backends package work with pydoc too.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 10 Dec 2001 22:20:01 +0000 |
| parents | 9d97c1a4ddad |
| children | a0c598702f17 |
comparison
equal
deleted
inserted
replaced
| 439:6e27cb83aacb | 440:de5bf4191f11 |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 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" | 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, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: __init__.py,v 1.7 2001-12-10 00:57:38 richard Exp $ | 18 # $Id: __init__.py,v 1.8 2001-12-10 22:20:01 richard Exp $ |
| 19 | 19 |
| 20 __all__ = [] | 20 __all__ = [] |
| 21 | 21 |
| 22 try: | 22 try: |
| 23 import anydbm, dumbdbm | 23 import anydbm, dumbdbm |
| 25 assert anydbm._defaultmod != dumbdbm | 25 assert anydbm._defaultmod != dumbdbm |
| 26 del anydbm | 26 del anydbm |
| 27 del dumbdbm | 27 del dumbdbm |
| 28 import back_anydbm | 28 import back_anydbm |
| 29 anydbm = back_anydbm | 29 anydbm = back_anydbm |
| 30 __all__.append('anydbm') | |
| 31 except AssertionError: | |
| 30 del back_anydbm | 32 del back_anydbm |
| 31 __all__.append('anydbm') | |
| 32 except: | 33 except: |
| 33 pass | 34 pass |
| 34 | 35 |
| 35 try: | 36 try: |
| 36 import back_bsddb | 37 import back_bsddb |
| 37 bsddb = back_bsddb | 38 bsddb = back_bsddb |
| 38 del back_bsddb | |
| 39 __all__.append('bsddb') | 39 __all__.append('bsddb') |
| 40 except: | 40 except: |
| 41 pass | 41 pass |
| 42 | 42 |
| 43 try: | 43 try: |
| 44 import back_bsddb3 | 44 import back_bsddb3 |
| 45 bsddb3 = back_bsddb3 | 45 bsddb3 = back_bsddb3 |
| 46 del back_bsddb3 | |
| 47 __all__.append('bsddb3') | 46 __all__.append('bsddb3') |
| 48 except: | 47 except: |
| 49 pass | 48 pass |
| 50 | 49 |
| 51 | |
| 52 # | 50 # |
| 53 # $Log: not supported by cvs2svn $ | 51 # $Log: not supported by cvs2svn $ |
| 52 # Revision 1.7 2001/12/10 00:57:38 richard | |
| 53 # From CHANGES: | |
| 54 # . Added the "display" command to the admin tool - displays a node's values | |
| 55 # . #489760 ] [issue] only subject | |
| 56 # . fixed the doc/index.html to include the quoting in the mail alias. | |
| 57 # | |
| 58 # Also: | |
| 59 # . fixed roundup-admin so it works with transactions | |
| 60 # . disabled the back_anydbm module if anydbm tries to use dumbdbm | |
| 61 # | |
| 54 # Revision 1.6 2001/08/07 00:24:42 richard | 62 # Revision 1.6 2001/08/07 00:24:42 richard |
| 55 # stupid typo | 63 # stupid typo |
| 56 # | 64 # |
| 57 # Revision 1.5 2001/08/07 00:15:51 richard | 65 # Revision 1.5 2001/08/07 00:15:51 richard |
| 58 # Added the copyright/license notice to (nearly) all files at request of | 66 # Added the copyright/license notice to (nearly) all files at request of |
