Commit graph

38 commits

Author SHA1 Message Date
Emmanuel Garette
372ce5ea1e validate value when we calculate it 2017-01-26 21:01:54 +01:00
Emmanuel Garette
24ec5a9112 don't display warning in mandatory_warnings 2016-10-14 21:31:39 +02:00
Emmanuel Garette
c31590c2ac consistency is now check not_equal if one option has PropertiesOptionError 2016-10-12 21:58:37 +02:00
Emmanuel Garette
924692d3ab valid correctly consistencies for master/slaves 2016-03-18 19:55:41 +01:00
Emmanuel Garette
5a5231c2d8 test: set force_permissive to append 2016-03-18 16:41:59 +01:00
Emmanuel Garette
100a0110cd support callback with propertyerror in master for mandatory_warnings 2016-03-17 22:06:16 +01:00
Emmanuel Garette
ab555966f7 use python-coverage to delete dead part of code 2015-11-24 10:58:19 +01:00
Emmanuel Garette
54ca54e505 separate value in slave 2015-11-19 22:25:00 +01:00
Emmanuel Garette
64e9171ea6 valid properties for slaves when set or append a master's value 2015-10-26 15:39:07 +01:00
Emmanuel Garette
44cd618704 remove pep8 validation errors 2015-07-24 17:54:10 +02:00
Emmanuel Garette
057bba83e4 ValueError if not PropertieError 2015-04-18 23:46:37 +02:00
Emmanuel Garette
b64189f763 add DynOptionDescription 2014-06-19 23:22:39 +02:00
Emmanuel Garette
9112a8c5b0 add SubMulti 2014-04-26 22:37:01 +02:00
Emmanuel Garette
5d8b5719a0 Merge branch 'master' into orm
Conflicts:
	test/test_config_api.py
	tiramisu/autolib.py
	tiramisu/config.py
	tiramisu/option.py
	tiramisu/value.py
2014-04-13 10:30:42 +02:00
Emmanuel Garette
cd4d3527c7 split tiramisu/option.py and add MasterSlaves object 2014-04-12 17:55:13 +02:00
Emmanuel Garette
76a43a7ff9 if slave has a callback with a slave that has a callback with a default_multi's slave, now it's works 2014-04-02 12:04:50 +02:00
Emmanuel Garette
835d6d6da0 context could be useful in a callback, now we can retrieve context in a function (be careful to infinite loop) 2014-03-26 19:47:42 +01:00
Emmanuel Garette
5897231421 Merge branch 'master' into orm
Conflicts:
	test/test_dereference.py
	test/test_state.py
	tiramisu/config.py
	tiramisu/value.py
2014-02-02 18:52:13 +01:00
Emmanuel Garette
683e40fbb5 when change len of calculated master, change len of slave too 2014-02-02 18:20:01 +01:00
Emmanuel Garette
2eb63c917b active callback's slave verification 2014-01-28 09:14:56 +01:00
Emmanuel Garette
661f844ce6 sqlalchemy has a storage 2014-01-20 14:53:14 +01:00
Emmanuel Garette
64ca069a0b Merge branch 'master' into orm
Conflicts:
	test/test_config.py
	tiramisu/autolib.py
	tiramisu/option.py
	tiramisu/value.py
2013-12-12 17:50:42 +01:00
Emmanuel Garette
c58de18b62 add more tests 2013-12-09 18:56:29 +01:00
Emmanuel Garette
73745be440 Important behavior change : to add default_multi value, now use Multi.append(), not Multi.append(None) 2013-12-09 17:59:39 +01:00
Emmanuel Garette
20bef5ff04 Important behavior change in callback with multi.
Before, tiramisu iterable multi's callback_params in all cases.
Now, this append only if multi's callback_params are in master/slave group.
2013-12-09 15:08:14 +01:00
Emmanuel Garette
374c56a9c8 first version with sqlalchemy option's storage 2013-11-23 23:34:17 +01:00
Emmanuel Garette
3fc89be40e comment tiramisu/autolib.py + some modification 2013-09-23 22:40:10 +02:00
Emmanuel Garette
90ae9aa70d refactore carry_out_calculation + test + documentation 2013-09-19 21:39:41 +02:00
Emmanuel Garette
866364059c dont change anything if config_error 2013-09-17 09:10:08 +02:00
Emmanuel Garette
57f4dd8d3f allow mandatory value (see 9ddf100118 for more details) 2013-09-16 20:51:13 +02:00
Emmanuel Garette
9ddf100118 when we get an option's value, we need it's values to calculate properties (ie for mandatory's option)
if a disabled option has a callback to an other disabled value, it's raise ConfigError

now only raise if option has no other propertiesError
2013-09-16 15:07:34 +02:00
Emmanuel Garette
b6bb685ca5 key is now always path and change opt by path dictionary storage 2013-08-21 22:21:50 +02:00
Emmanuel Garette
9b134c3aa7 requirement are now a dictionary (not anymore a tuple) 2013-06-29 18:41:14 +02:00
Emmanuel Garette
75f7e7ce5d callback with option in params which is in an hidden optiondescription 2013-06-26 16:26:42 +02:00
Emmanuel Garette
0d114001f4 Works callback/multi/master-slave
- in multi, never modify _default value
- _reset slave when _reset master
- if append None in master with callback return not a list, replace None by the value
- list support in slave
2013-06-12 10:22:50 +02:00
Emmanuel Garette
ada5bfbf6c add test for callback not in multi 2013-06-11 15:36:08 +02:00
Emmanuel Garette
6d1cf308b2 Better support for slave with callback:
- callback must return single value, not a list
- if default value, append slave values with master len
- if not default and append, set default value
2013-06-11 15:12:31 +02:00
Emmanuel Garette
6de65859b4 * config herite from BaseInformation class
* _cfgimpl_ => _impl_
* optimpl_ => impl_
* properties/permissives are now set/frozenset
* validation raise ValueError if not valid, didn't return anything otherwise
* consistencies are now validate in setting and when deleting value
* ip/network with netmask consistency now works
* DomainnameOption now works
* if no validation, don't set cache for value
* symlinkoption: remove path (not used)
2013-05-08 18:14:42 +02:00