Add missing fullcache check to attributes.clear(). Resolves #1404.
This commit is contained in:
parent
f0d1abc4ff
commit
05a3d0435d
1 changed files with 2 additions and 0 deletions
|
|
@ -646,6 +646,8 @@ class AttributeHandler(object):
|
||||||
type `attredit` on the Attribute in question.
|
type `attredit` on the Attribute in question.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
if not self._cache_complete:
|
||||||
|
self._fullcache()
|
||||||
if accessing_obj:
|
if accessing_obj:
|
||||||
[attr.delete() for attr in self._cache.values()
|
[attr.delete() for attr in self._cache.values()
|
||||||
if attr and attr.access(accessing_obj, self._attredit, default=default_access)]
|
if attr and attr.access(accessing_obj, self._attredit, default=default_access)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue