Commit graph

30 commits

Author SHA1 Message Date
Emmanuel Garette
c3f968dbde master/slaves => leader/followers 2019-02-23 19:06:23 +01:00
Emmanuel Garette
f4bf3dc390 add PathConfig 2018-10-31 08:00:19 +01:00
Emmanuel Garette
6b6fa5e499 remove getapi in tests 2018-08-14 23:07:07 +02:00
Emmanuel Garette
f30ca3dc46 update sqlite storage 2018-06-09 18:59:40 +02:00
Emmanuel Garette
54b57968bc not Params object for callback, validator and calculated values for choiceoption 2018-04-15 21:13:16 +02:00
Emmanuel Garette
bc4fa9d3d0 remove (g|s)et_modified_*, now it's exportation/importation 2018-04-04 21:51:18 +02:00
Emmanuel Garette
d5d826f967 adapt tests 2018-03-19 08:33:53 +01:00
Emmanuel Garette
5a1987f2e6 Add MasterSlaves object 2017-10-14 13:33:25 +02:00
Emmanuel Garette
c8bc3093c7 python 3.5 support 2017-07-09 09:49:03 +02:00
Emmanuel Garette
722779ebf7 coverage 2017-02-03 23:39:24 +01:00
Emmanuel Garette
e91568e6b6 Validation should return exception, not raises exception
Don't check force_store_value for SymLinkOption
2016-03-24 19:43:41 +01:00
Emmanuel Garette
32592b9289 setitem for a slave only modify current value 2016-03-08 23:18:42 +01:00
Emmanuel Garette
da89c1aa58 force_store_value is now used directly when configuration is loaded 2016-03-07 16:13:41 +01:00
Emmanuel Garette
ce162280ad simplify _setvalue 2015-12-31 18:20:36 +01:00
Emmanuel Garette
44cd618704 remove pep8 validation errors 2015-07-24 17:54:10 +02:00
Emmanuel Garette
8a59e27396 f option is frozen with force_default_on_freeze property, owner must be 'default' check property when tried to change owner 2014-10-26 08:51:45 +01:00
Emmanuel Garette
b6a0f188b2 force_store_value now support Multi 2014-04-18 21:33:15 +02:00
Emmanuel Garette
a3c5e6034f Merge branch 'force_permissive'
Conflicts:
	test/test_freeze.py
2014-03-31 22:38:56 +02:00
Emmanuel Garette
cd52729952 add force_permissive in config's method (iter_all, iter_group, find, find_first and make_dict)
rename _getattr to getattr
2014-03-31 22:34:57 +02:00
Emmanuel Garette
ff5376a382 properties are check now in getowner
get_modified_values works good with force_store_value
2014-03-29 20:31:56 +01:00
Emmanuel Garette
712db2875e force_store_value works now with permissive 2014-03-28 17:36:02 +01:00
gwen
fbf05ba5e4 python 3 compatibility
remove __eq__ and __ne__ in Option
2013-08-28 21:13:42 +02:00
Emmanuel Garette
e4c129efc5 getowner need now an option 2013-08-24 22:32:54 +02:00
Emmanuel Garette
9b134c3aa7 requirement are now a dictionary (not anymore a tuple) 2013-06-29 18:41:14 +02:00
Emmanuel Garette
2c5bbb7bc0 Requires need option, not path
Valid requires
2013-04-26 14:40:44 +02:00
Emmanuel Garette
f0ef1734f4 add a test for force_store_value in read_only mode 2013-04-23 19:01:03 +02:00
Emmanuel Garette
e883e5b89e remove _setoption in SymLinkOption
objimpl_ => optimpl_
ConflictConfigError => ConflictError
add read_write/read_only/getowner in Config
2013-04-22 09:19:05 +02:00
Emmanuel Garette
d4ef47759e 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')
2013-04-20 17:30:05 +02:00
Emmanuel Garette
324c3d2cf6 * to "reset" a value, now you just have to delete it
config.unwrap_from_path("string").reset(config) => del(config.string)
* add cache for value/setting to 5 secds
to "reset" cache just do: config.cfgimpl_clean_cache()
* can desactivate cache by removing "expire" property
2013-04-18 20:26:40 +02:00
Emmanuel Garette
3170237c8e properties validation not in setting and now launch when modify multi 2013-04-17 21:33:34 +02:00