Mercurial > p > roundup > code
comparison roundup/backends/__init__.py @ 972:ca0a542b2d19
That's gadfly done, mostly.
Things left:
- Class.filter (I'm a wuss ;)
- schema changes adding new non-multilink properties are not implemented.
gadfly doesn't have an ALTER TABLE command, making that quite difficult :)
I had to mangle two unit tests to get this all working:
- gadfly also can't handle two handles open on the one database, so
testIDGeneration doesn't try that.
- testNewProperty is disabled as per the second comment above.
I noticed test_pack was incorrect, and the *dbm tests fail there now.
Looking into it...
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 23 Aug 2002 04:48:10 +0000 |
| parents | 07d8a4e296f8 |
| children | 32e41ddf2edb |
comparison
equal
deleted
inserted
replaced
| 971:5252cc77eaa0 | 972:ca0a542b2d19 |
|---|---|
| 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.14 2002-08-22 07:56:51 richard Exp $ | 18 # $Id: __init__.py,v 1.15 2002-08-23 04:48:10 richard Exp $ |
| 19 | 19 |
| 20 __all__ = [] | 20 __all__ = [] |
| 21 | 21 |
| 22 try: | 22 try: |
| 23 import sys, anydbm | 23 import sys, anydbm |
| 40 import gadfly | 40 import gadfly |
| 41 except ImportError, message: | 41 except ImportError, message: |
| 42 if str(message) != 'No module named gadfly': raise | 42 if str(message) != 'No module named gadfly': raise |
| 43 else: | 43 else: |
| 44 import back_gadfly | 44 import back_gadfly |
| 45 bsddb = back_gadfly | 45 gadfly = back_gadfly |
| 46 __all__.append('gadfly') | 46 __all__.append('gadfly') |
| 47 | 47 |
| 48 try: | 48 try: |
| 49 import bsddb | 49 import bsddb |
| 50 except ImportError, message: | 50 except ImportError, message: |
| 72 metakit = back_metakit | 72 metakit = back_metakit |
| 73 __all__.append('metakit') | 73 __all__.append('metakit') |
| 74 | 74 |
| 75 # | 75 # |
| 76 # $Log: not supported by cvs2svn $ | 76 # $Log: not supported by cvs2svn $ |
| 77 # Revision 1.14 2002/08/22 07:56:51 richard | |
| 78 # Whee! It's not finished yet, but I can create a new instance and play with | |
| 79 # it a little bit :) | |
| 80 # | |
| 77 # Revision 1.13 2002/07/11 01:11:03 richard | 81 # Revision 1.13 2002/07/11 01:11:03 richard |
| 78 # Added metakit backend to the db tests and fixed the more easily fixable test | 82 # Added metakit backend to the db tests and fixed the more easily fixable test |
| 79 # failures. | 83 # failures. |
| 80 # | 84 # |
| 81 # Revision 1.12 2002/05/22 00:32:33 richard | 85 # Revision 1.12 2002/05/22 00:32:33 richard |
