test if cache property is not set in config when force_cache

This commit is contained in:
2014-03-09 20:22:29 +01:00
parent fbc79ced07
commit db9ab7a1e9
2 changed files with 9 additions and 2 deletions

View File

@ -420,8 +420,8 @@ class Values(object):
"""
context = self.context()
if not 'cache' in context.cfgimpl_get_settings():
raise PropertiesOptionError(_('can force cache only if cache '
'is actived in config'))
raise ConfigError(_('can force cache only if cache '
'is actived in config'))
#remove all cached properties and value to update "expired" time
context.cfgimpl_reset_cache()
for path in context.cfgimpl_get_description().impl_getpaths(