zopefoundation / Acquisition

Acquisition is a mechanism that allows objects to obtain attributes from the containment hierarchy they're in.
Other
12 stars 12 forks source link

aq_acquire ignores the 'default' parameter. #1

Closed tseaver closed 10 years ago

tseaver commented 10 years ago

As follows:

>>> from Acquisition import aq_acquire, aq_get
>>> aq_acquire(object(), 'nonesuch', default='abc')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
AttributeError: 'object' object has no attribute 'nonesuch'
tseaver commented 10 years ago

Track via LP #1387363