File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ Cleanup:
68682004-??-?? 0.6.5
6969Fixed:
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
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ Dan Grassi,
7171Engelbert Gruber,
7272Juergen Hermann,
7373Tobias Hunger,
74+ Brian Kelley,
7475James Kew,
7576Sheila King,
7677Bastian Kleineidam,
Original file line number Diff line number Diff line change 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 ]
You can’t perform that action at this time.
0 commit comments