Skip to content

Commit 9a40918

Browse files
author
Andrey Lebedev
committed
Apply Error fix backported to main-0-6
1 parent 18b9733 commit 9a40918

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

CHANGES.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4+
200?-??-?? 0.7.0
5+
Feature:
6+
- support confirming registration by replying to the email (sf bug 763668)
7+
8+
49
2003-09-?? 0.6.2
510
Fixed:
611
- cleaned up, clarified internal caching API in *dbm backends
712
- stopped pyc writing to current directory! yay! (patch 800718 with changes)
813
- fixed file leak in detector initialisation (patch 800715)
914
- commented out example tracker homes (patch 800720)
15+
- added note about hidden :template var in user.item (bug 799842)
16+
- fixed Apply Error that was raised, when property was deleted from class and
17+
we are trying to edit an instance
1018

1119

1220
2003-08-31 0.6.1

roundup/roundupdb.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: roundupdb.py,v 1.86 2003-04-27 02:24:37 richard Exp $
18+
# $Id: roundupdb.py,v 1.86.2.1 2003-09-18 07:29:56 kedder Exp $
1919

2020
__doc__ = """
2121
Extending hyperdb with types specific to issue-tracking.
@@ -427,8 +427,14 @@ def generateChangeNote(self, nodeid, oldvalues):
427427
continue
428428
if key in ('activity', 'creator', 'creation'):
429429
continue
430-
new_value = cl.get(nodeid, key)
430+
# not all keys from oldvalues might be available in database
431+
# this happens when property was deleted
432+
try:
433+
new_value = cl.get(nodeid, key)
434+
except KeyError:
435+
continue
431436
# the old value might be non existent
437+
# this happens when property was added
432438
try:
433439
old_value = oldvalues[key]
434440
if type(new_value) is type([]):

0 commit comments

Comments
 (0)