|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -#$Id: back_anydbm.py,v 1.176 2004-11-12 04:07:04 richard Exp $ |
| 18 | +#$Id: back_anydbm.py,v 1.177 2004-11-12 10:43:31 a1s Exp $ |
19 | 19 | '''This module defines a backend that saves the hyperdatabase in a |
20 | 20 | database chosen by anydbm. It is guaranteed to always be available in python |
21 | 21 | versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several |
|
34 | 34 | print "WARNING: you should upgrade to python 2.1.3" |
35 | 35 |
|
36 | 36 | import whichdb, os, marshal, re, weakref, string, copy, time, shutil |
| 37 | + |
37 | 38 | from roundup import hyperdb, date, password, roundupdb, security |
| 39 | +from roundup.backends import locking |
| 40 | +from roundup.i18n import _ |
| 41 | + |
38 | 42 | from blobfiles import FileStorage |
39 | 43 | from sessions_dbm import Sessions, OneTimeKeys |
40 | 44 | from indexer_dbm import Indexer |
41 | | -from roundup.backends import locking |
42 | 45 |
|
43 | 46 | def db_exists(config): |
44 | 47 | # check for the user db |
@@ -2046,7 +2049,7 @@ def import_journals(self, entries): |
2046 | 2049 | pass |
2047 | 2050 | elif isinstance(prop, hyperdb.Date): |
2048 | 2051 | if type(value) == type(()): |
2049 | | - print 'warning: invalid date tuple %r'%(value,) |
| 2052 | + print _('WARNING: invalid date tuple %r')%(value,) |
2050 | 2053 | value = date.Date( "2000-1-1" ) |
2051 | 2054 | value = date.Date(value) |
2052 | 2055 | elif isinstance(prop, hyperdb.Interval): |
|
0 commit comments