comparison roundup/hyperdb.py @ 236:8827f5931ea8

Fixed CGI client change messages... ...so they actually include the properties changed (again).
author Richard Jones <richard@users.sourceforge.net>
date Wed, 29 Aug 2001 04:47:18 +0000
parents afd428ba6523
children ab921dc53ccd
comparison
equal deleted inserted replaced
235:d7d358408537 236:8827f5931ea8
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.18 2001-08-16 07:34:59 richard Exp $ 18 # $Id: hyperdb.py,v 1.19 2001-08-29 04:47:18 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
263 num_re = re.compile('^\d+$') 263 num_re = re.compile('^\d+$')
264 for key, value in propvalues.items(): 264 for key, value in propvalues.items():
265 if not node.has_key(key): 265 if not node.has_key(key):
266 raise KeyError, key 266 raise KeyError, key
267 267
268 if key == self.key: 268 # check to make sure we're not duplicating an existing key
269 if key == self.key and node[key] != value:
269 try: 270 try:
270 self.lookup(value) 271 self.lookup(value)
271 except KeyError: 272 except KeyError:
272 pass 273 pass
273 else: 274 else:
792 cl.create(name=option[i], order=i) 793 cl.create(name=option[i], order=i)
793 return hyperdb.Link(name) 794 return hyperdb.Link(name)
794 795
795 # 796 #
796 # $Log: not supported by cvs2svn $ 797 # $Log: not supported by cvs2svn $
798 # Revision 1.18 2001/08/16 07:34:59 richard
799 # better CGI text searching - but hidden filter fields are disappearing...
800 #
797 # Revision 1.17 2001/08/16 06:59:58 richard 801 # Revision 1.17 2001/08/16 06:59:58 richard
798 # all searches use re now - and they're all case insensitive 802 # all searches use re now - and they're all case insensitive
799 # 803 #
800 # Revision 1.16 2001/08/15 23:43:18 richard 804 # Revision 1.16 2001/08/15 23:43:18 richard
801 # Fixed some isFooTypes that I missed. 805 # Fixed some isFooTypes that I missed.

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