[Zope-Checkins] CVS: Zope2 - Acquisition.c:1.31
Jim Fulton
jim@korak.digicool.com
Thu, 5 Aug 1999 17:36:51 -0400
Update of /cvs-repository/Zope2/lib/Components/ExtensionClass
In directory korak.digicool.com:/home/jim/atmp/new/lib/Components/ExtensionClass
Modified Files:
Acquisition.c
Log Message:
I had added a check to make sure that we didn't hide programming errors
when trying to get attributes during acquisition. For example, it was
common for acquisition to mask errors occuring when trying to load
object state from the database, since this is typically triggered by a
getattr call. I wanted to do something like:
try: foo.bar
except AttributeError, v:
if v != 'bar': raise # Bogus attribute error
# keep looking up the acquisition tree
Unfortunately, this fails because v is (sometimes) an
instance, not a string.
For now, we'll check for attribute errors, but ingore the values.