diff roundup/backends/back_metakit.py @ 3486:34ada15b9936

all backends implement the retired check in getnodeids [SF#1290560]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 23 Jan 2006 05:24:33 +0000
parents 1142dafe0d7f
children 87e512f87bae
line wrap: on
line diff
--- a/roundup/backends/back_metakit.py	Mon Jan 23 04:58:21 2006 +0000
+++ b/roundup/backends/back_metakit.py	Mon Jan 23 05:24:33 2006 +0000
@@ -1,4 +1,4 @@
-# $Id: back_metakit.py,v 1.99 2006-01-20 02:40:56 richard Exp $
+# $Id: back_metakit.py,v 1.100 2006-01-23 05:24:33 richard Exp $
 '''Metakit backend for Roundup, originally by Gordon McMillan.
 
 Known Current Bugs:
@@ -1156,14 +1156,18 @@
             l.append(str(row.id))
         return l
 
-    def getnodeids(self):
+    def getnodeids(self, retired=None):
         ''' Retrieve all the ids of the nodes for a particular Class.
 
             Set retired=None to get all nodes. Otherwise it'll get all the
             retired or non-retired nodes, depending on the flag.
         '''
         l = []
-        for row in self.getview():
+        if retired is False or retired is True:
+            result = self.getview().select(_isdel=retired)
+        else:
+            result = self.getview()
+        for row in result:
             l.append(str(row.id))
         return l
 

Roundup Issue Tracker: http://roundup-tracker.org/