#779: turbogears.util.DictObj improvement
----------------------------------+-----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 0.9a5
Component: TurboGears | Version: 0.9a4
Severity: normal | Resolution:
Keywords: |
----------------------------------+-----------------------------------------
Comment (by alberto):
Can someone please take a nosetests of this patch. My install is broken
somewhere and I've got a bunch of errors and failures.
I guess it's correct because the only tests failing are the ones I had
before... Anyway, I've tweaked Bunch to make it the only and only.
{{{__getattr__}}} needs to be overrided so {{{getattr(bunch, non_existent,
default) == default}}}. Else a KeyError will raise and getattr will not
give default values.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/779>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---