source: products/vendor/Products.CacheSetup/current/Products/CacheSetup/utils.py @ 3296

Last change on this file since 3296 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 
1from Acquisition import aq_base
2
3marker = []
4
5def safe_hasattr(ob, attribute):
6    """safe_hasattr"""
7    return getattr(ob, attribute, marker) is not marker
8
9def 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.