Mercurial > p > roundup > code
comparison roundup/hyperdb.py @ 570:e346a9792335
fixed back_bsddb so it passed the journal tests
... it didn't seem happy using the back_anydbm _open method, which is odd.
Yet another occurrance of whichdb not being able to recognise older bsddb
databases. Yadda yadda. Made the HYPERDBDEBUG stuff more sane in the
process.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 22 Jan 2002 07:21:13 +0000 |
| parents | 62febbd7ffec |
| children | edd210915e64 |
comparison
equal
deleted
inserted
replaced
| 569:d426d44abd3c | 570:e346a9792335 |
|---|---|
| 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: hyperdb.py,v 1.52 2002-01-21 16:33:19 rochecompaan Exp $ | 18 # $Id: hyperdb.py,v 1.53 2002-01-22 07:21:13 richard Exp $ |
| 19 | 19 |
| 20 __doc__ = """ | 20 __doc__ = """ |
| 21 Hyperdatabase implementation, especially field types. | 21 Hyperdatabase implementation, especially field types. |
| 22 """ | 22 """ |
| 23 | 23 |
| 24 # standard python modules | 24 # standard python modules |
| 25 import cPickle, re, string, weakref | 25 import cPickle, re, string, weakref, os |
| 26 | 26 |
| 27 # roundup modules | 27 # roundup modules |
| 28 import date, password | 28 import date, password |
| 29 | 29 |
| 30 DEBUG = os.environ.get('HYPERDBDEBUG', '') | |
| 30 | 31 |
| 31 # | 32 # |
| 32 # Types | 33 # Types |
| 33 # | 34 # |
| 34 class String: | 35 class String: |
| 1063 cl.create(name=option[i], order=i) | 1064 cl.create(name=option[i], order=i) |
| 1064 return hyperdb.Link(name) | 1065 return hyperdb.Link(name) |
| 1065 | 1066 |
| 1066 # | 1067 # |
| 1067 # $Log: not supported by cvs2svn $ | 1068 # $Log: not supported by cvs2svn $ |
| 1069 # Revision 1.52 2002/01/21 16:33:19 rochecompaan | |
| 1070 # You can now use the roundup-admin tool to pack the database | |
| 1071 # | |
| 1068 # Revision 1.51 2002/01/21 03:01:29 richard | 1072 # Revision 1.51 2002/01/21 03:01:29 richard |
| 1069 # brief docco on the do_journal argument | 1073 # brief docco on the do_journal argument |
| 1070 # | 1074 # |
| 1071 # Revision 1.50 2002/01/19 13:16:04 rochecompaan | 1075 # Revision 1.50 2002/01/19 13:16:04 rochecompaan |
| 1072 # Journal entries for link and multilink properties can now be switched on | 1076 # Journal entries for link and multilink properties can now be switched on |
