Re: [Cheetahtemplate-discuss] Bug? Was: Re: Confirmation of warm __init__ fix
Brought to you by:
rtyler,
tavis_rudd
From: <ir...@ms...> - 2002-11-03 04:29:36
|
On Sat, Nov 02, 2002 at 10:03:27PM -0500, Edmund Lian wrote: > Case A > ------ > I instantiate a template as: > > t = Template(file="myTemplate", searchList=[GroupForm]) > > GroupForm is a form object that maintains a dictionary of field objects > that are accessed as attributes. When it is asked for an attribute it does > not have, it raises a KeyError. If you raise the wrong exception, it may be confusing the NameMapper. That happened in somebody else's case, although I don't remember the details. Missing attributes should raise AttributeError. -- -Mike (Iron) Orr, ir...@ms... (if mail problems: ms...@oz...) http://iron.cx/ English * Esperanto * Russkiy * Deutsch * Espan~ol |