Skip to content

Commit 3169302

Browse files
author
Richard Jones
committed
fix to metakit from Brian Kelley
1 parent 9de1f92 commit 3169302

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ Cleanup:
6868
2004-??-?? 0.6.5
6969
Fixed:
7070
- mailgw handling of subject-line errors
71-
- allow serving of non-"file"-Class file content (eg. paper_file)
71+
- allow serving of FileClass file content when the class isn't called
72+
"file" (eg. messages and other FileClasses)
7273
- allowed negative ids (ie. new item markers) in HTMLClass.getItem,
7374
allowing "db/file_with_status/-1/status/menu" to generate a useful
7475
widget

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Dan Grassi,
7171
Engelbert Gruber,
7272
Juergen Hermann,
7373
Tobias Hunger,
74+
Brian Kelley,
7475
James Kew,
7576
Sheila King,
7677
Bastian Kleineidam,

roundup/backends/back_metakit.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_metakit.py,v 1.54 2003-12-05 04:43:46 richard Exp $
1+
# $Id: back_metakit.py,v 1.55 2004-01-20 22:45:36 richard Exp $
22
'''
33
Metakit backend for Roundup, originally by Gordon McMillan.
44
@@ -84,7 +84,11 @@ def __getattr__(self, classname):
8484
if classname == 'transactions':
8585
return self.dirty
8686
# fall back on the classes
87-
return self.getclass(classname)
87+
try:
88+
return self.getclass(classname)
89+
except KeyError, msg:
90+
# KeyError's not appropriate here
91+
raise AttributeError, str(msg)
8892
def getclass(self, classname):
8993
try:
9094
return self.classes[classname]

0 commit comments

Comments
 (0)