base: check field_aliases as well as bugfields in Bug.__getattr__
authorWill Woods <wwoods@redhat.com>
Mon, 13 Jun 2011 17:12:07 +0000 (13:12 -0400)
committerWill Woods <wwoods@redhat.com>
Mon, 13 Jun 2011 17:20:27 +0000 (13:20 -0400)
commit19df0981fa41fdeebb4f433d497d9093ce86a5c5
treef9092af0f698f49886c25deb6f1d67cc188a7e06
parenta705a66029c4a612d9284766c7680762aaef620e
base: check field_aliases as well as bugfields in Bug.__getattr__

Sometimes we'll try to get an attribute (e.g. 'summary') that's not in
bugfields, but field_aliases knows that 'short_desc' is another name for
the same thing. So: check field_aliases and if short_desc is available,
return that instead.
bugzilla/base.py