summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bcfe318)
raw | patch | inline | side by side (parent: bcfe318)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 12 Aug 2003 02:22:22 +0000 (02:22 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 12 Aug 2003 02:22:22 +0000 (02:22 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1808 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/backends/rdbms_common.py | patch | blob | history | |
test/test_db.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index b644e913e6348d908e0be788129cc2e3780915f9..dceadb3b7f6587eccc9aea8ebe92b09e487eb4e1 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- timelog editing via csv interface crashes (sf bug 699837)
- sort multilinks a little better for grouping (sf bug 772935)
- batch the (list) listings at 500 entries per page (sf bug 759906)
+- don't have RDBMS backends list retired nodes (sf bug 767319)
2003-07-29 0.6.0b4
index 9d7f3333583cdc07445a2ac4a3afd640daff49b6..a6e268dbbc430044b909125ef6d9b405767c8ca8 100644 (file)
-# $Id: rdbms_common.py,v 1.57 2003-07-03 23:43:46 richard Exp $
+# $Id: rdbms_common.py,v 1.58 2003-08-12 02:18:46 richard Exp $
''' Relational database (SQL) backend common code.
Basics:
self.fireReactors('retire', nodeid, None)
def restore(self, nodeid):
- '''Restpre a retired node.
+ '''Restore a retired node.
Make node available for all operations like it was before retirement.
'''
where.append('_%s=%s'%(k, a))
args.append(v)
+ # don't match retired nodes
+ where.append('__retired__ <> 1')
+
# add results of full text search
if search_matches is not None:
v = search_matches.keys()
diff --git a/test/test_db.py b/test/test_db.py
index 0aa53fd406a7be1dbd569e59a037a27e9a128e86..29942138ea77b964fbdee547e0fd091e8af5a1cd 100644 (file)
--- a/test/test_db.py
+++ b/test/test_db.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: test_db.py,v 1.89 2003-05-09 01:47:51 richard Exp $
+# $Id: test_db.py,v 1.90 2003-08-12 02:22:22 richard Exp $
import unittest, os, shutil, time
ae, filt = self.filteringSetup()
ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['2','3'])
+ def testFilteringRetired(self):
+ ae, filt = self.filteringSetup()
+ self.db.issue.retire('2')
+ ae(filt(None, {'status': '1'}, ('+','id'), (None,None)), ['3'])
+
def testFilteringMultilink(self):
ae, filt = self.filteringSetup()
ae(filt(None, {'nosy': '2'}, ('+','id'), (None,None)), ['3'])