Manipulate properties is now more convenient:
authorEmmanuel Garette <egarette@cadoles.com>
Sat, 20 Apr 2013 15:30:05 +0000 (17:30 +0200)
committerEmmanuel Garette <egarette@cadoles.com>
Sat, 20 Apr 2013 15:30:05 +0000 (17:30 +0200)
commitd4ef47759e6597d0e879c3aaad931baef6f4087a
tree623d5c1c8570451504424e25001c24e659f36bb0
parent54fe8d0f4b1a3b0a1a5297f15b01167c38434f8a
Manipulate properties is now more convenient:

c.cfgimpl_get_settings().has_property('hidden') => 'hidden' in c.cfgimpl_get_settings()
c.cfgimpl_get_settings().has_property('hidden', option1) => 'frozen' in c.cfgimpl_get_settings()[opt]

c.cfgimpl_get_settings().get_properties(option1) => c.cfgimpl_get_settings()[option1]
c.cfgimpl_get_settings().get_properties(option1) => c.cfgimpl_get_settings()[option1]

c.cfgimpl_get_settings().add_property('hidden', option1) => c.cfgimpl_get_settings()[optiont1].append('hidden')
c.cfgimpl_get_settings().del_property('hidden', option1) => c.cfgimpl_get_settings()[optiont1].remove('hidden')

c.cfgimpl_get_settings().enable_property('hidden') => c.cfgimpl_get_settings().append('hidden')
c.cfgimpl_get_settings().disable_property('hidden') => c.cfgimpl_get_settings().remove('hidden')
test/test_cache.py [new file with mode: 0644]
test/test_freeze.py
test/test_mandatory.py
test/test_option_consistency.py
test/test_option_default.py
test/test_option_setting.py
test/test_option_type.py
test/test_option_with_special_name.py
test/test_permissive.py [new file with mode: 0644]
tiramisu/setting.py
tiramisu/value.py