Last change
on this file was
3296,
checked in by fenix, 13 years ago
|
Load Products.CacheSetup?-1.2.1 into vendor/Products.CacheSetup?/current.
|
-
Property svn:eol-style set to
native
|
File size:
281 bytes
|
Line | |
---|
1 | from Acquisition import aq_base |
---|
2 | |
---|
3 | marker = [] |
---|
4 | |
---|
5 | def safe_hasattr(ob, attribute): |
---|
6 | """safe_hasattr""" |
---|
7 | return getattr(ob, attribute, marker) is not marker |
---|
8 | |
---|
9 | def base_hasattr(ob, attribute): |
---|
10 | """base_hasattr""" |
---|
11 | return getattr(aq_base(ob), attribute, marker) is not marker |
---|
12 | |
---|
Note: See
TracBrowser
for help on using the repository browser.