From: richard Date: Sat, 22 Mar 2003 22:43:21 +0000 (+0000) Subject: fixed date unserialisation for *dbm backends X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=80edcd877ef7b34ce0a882496b7b09d1bd7a80fe;p=roundup.git fixed date unserialisation for *dbm backends git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1614 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/date.py b/roundup/date.py index 165a883..a6430d7 100644 --- a/roundup/date.py +++ b/roundup/date.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: date.py,v 1.50 2003-03-19 05:18:10 richard Exp $ +# $Id: date.py,v 1.51 2003-03-22 22:43:21 richard Exp $ __doc__ = """ Date, time and time interval handling. @@ -384,6 +384,8 @@ class Interval: if not m: raise ValueError, _('Not an interval spec: [+-] [#y] [#m] [#w] ' '[#d] [[[H]H:MM]:SS] [date spec]') + else: + allowdate = 0 # pull out all the info specified info = m.groupdict() diff --git a/test/test_db.py b/test/test_db.py index 7d610b5..742e65b 100644 --- a/test/test_db.py +++ b/test/test_db.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_db.py,v 1.80 2003-03-18 23:28:16 richard Exp $ +# $Id: test_db.py,v 1.81 2003-03-22 22:43:21 richard Exp $ import unittest, os, shutil, time @@ -902,7 +902,7 @@ def suite(): unittest.makeSuite(anydbmReadOnlyDBTestCase, 'test') ] p.append('anydbm') - #return unittest.TestSuite(l) +# return unittest.TestSuite(l) from roundup import backends if hasattr(backends, 'mysql'):