comparison roundup/hyperdb.py @ 380:a1331423eb93

Fixed issues with nosy reaction and author copies.
author Richard Jones <richard@users.sourceforge.net>
date Mon, 12 Nov 2001 22:01:07 +0000
parents 93dc08528ad9
children d4b19c2ee740
comparison
equal deleted inserted replaced
379:c7b5b1aa6b4a 380:a1331423eb93
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: hyperdb.py,v 1.30 2001-11-09 10:11:08 richard Exp $ 18 # $Id: hyperdb.py,v 1.31 2001-11-12 22:01:06 richard Exp $
19 19
20 # standard python modules 20 # standard python modules
21 import cPickle, re, string 21 import cPickle, re, string
22 22
23 # roundup modules 23 # roundup modules
543 for nodeid in self.db.getnodeids(self.classname, cldb): 543 for nodeid in self.db.getnodeids(self.classname, cldb):
544 node = self.db.getnode(self.classname, nodeid, cldb) 544 node = self.db.getnode(self.classname, nodeid, cldb)
545 if node.has_key(self.db.RETIRED_FLAG): 545 if node.has_key(self.db.RETIRED_FLAG):
546 continue 546 continue
547 for key, value in requirements.items(): 547 for key, value in requirements.items():
548 if node[key].lower() != value: 548 if node[key] and node[key].lower() != value:
549 break 549 break
550 else: 550 else:
551 l.append(nodeid) 551 l.append(nodeid)
552 cldb.close() 552 cldb.close()
553 return l 553 return l
847 cl.create(name=option[i], order=i) 847 cl.create(name=option[i], order=i)
848 return hyperdb.Link(name) 848 return hyperdb.Link(name)
849 849
850 # 850 #
851 # $Log: not supported by cvs2svn $ 851 # $Log: not supported by cvs2svn $
852 # Revision 1.30 2001/11/09 10:11:08 richard
853 # . roundup-admin now handles all hyperdb exceptions
854 #
852 # Revision 1.29 2001/10/27 00:17:41 richard 855 # Revision 1.29 2001/10/27 00:17:41 richard
853 # Made Class.stringFind() do caseless matching. 856 # Made Class.stringFind() do caseless matching.
854 # 857 #
855 # Revision 1.28 2001/10/21 04:44:50 richard 858 # Revision 1.28 2001/10/21 04:44:50 richard
856 # bug #473124: UI inconsistency with Link fields. 859 # bug #473124: UI inconsistency with Link fields.

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