Commits

Anonymous committed 04183f6

Fix filtering.

  • Participants
  • Parent commits 8f702c4

Comments (0)

Files changed (1)

scripts/mass_reassign

-# This sample script reassigns all "Documentation"
+# This sample script reassigns all "open" "Documentation"
 # issues assigned to "georg.brandl" to "docs@python"
 import sys
 sys.path.insert(1,'/home/roundup/roundup/lib/python2.4/site-packages')
 tracker = roundup.instance.open('.')
 db = tracker.open('admin')
 
+open = db.status.lookup('open')
 olduser = db.user.lookup('georg.brandl')
 newuser = db.user.lookup('docs@python')
 component = db.component.lookup("Documentation")
 
-edit = db.issue.find(components=[component], assignee=olduser)
+edit = db.issue.filter(None, {'status':open,
+                              'components':component, 
+                              'assignee':olduser})
 print len(edit), edit; raise SystemExit
 
 for issue in edit: