Commit Graph

494 Commits

Author SHA1 Message Date
Emmanuel Garette 4b5d9b4229 __str__ method could return unicode object, force to decode in str 2013-07-01 16:49:10 +02:00
Emmanuel Garette b8bfa02e02 Remove 'build_actions' in 'apply_requires', now 'validate_requires_arg' build requires with tuple of tuple
New _requires format:
- requirement (like old format)
- tuple of requirements, each items are a tuple of requirement with same action
2013-07-01 11:55:32 +02:00
Emmanuel Garette 9b134c3aa7 requirement are now a dictionary (not anymore a tuple) 2013-06-29 18:41:14 +02:00
Emmanuel Garette e501c6d12d support multi requires with inverse set to True 2013-06-28 11:59:51 +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 32de14b731 validate_requires_arg return requires list 2013-06-26 16:25:02 +02:00
Emmanuel Garette 3c0629e6a9 better raise message if try to launch impl_get_information/impl_set_information in uncompatible class 2013-06-14 17:52:57 +02:00
Emmanuel Garette 23f6d2228f add symlink test 2013-06-13 22:07:58 +02:00
Emmanuel Garette 4d15c91383 symlink support for getowner and raise if option in master/slave 2013-06-13 22:06:49 +02:00
Emmanuel Garette c2471320c3 apply_requires: add property if any property raise PropertyError if same_action is False 2013-06-13 14:43:51 +02:00
Emmanuel Garette 755b2312c2 allow None in requirement 2013-06-13 12:15:46 +02:00
Emmanuel Garette fd02a954ca add sort, reverse, insert and extend in Multi 2013-06-12 22:48:22 +02:00
Emmanuel Garette 9c47eb32d5 ConfigError, not PropertiesOptionError if cannot access to option in carry_out_calculation 2013-06-12 17:07:29 +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 b2538f6f0b support of non multi variable 2013-06-11 15:31:20 +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
gwen 22f0aab0a8 fix i18n 2013-06-10 17:45:03 +02:00
gwen 9cf30d214d raise ConfigError 2013-06-10 17:12:57 +02:00
gwen 1c70a07d7e transitivity in the requirements 2013-06-10 15:19:00 +02:00
gwen 418de157e8 report: everything work again 2013-06-05 14:56:46 +02:00
gwen 7c640bee4c report: options work again 2013-06-05 11:19:47 +02:00
gwen 0846ca9890 Merge branch 'master' of ssh://git.labs.libre-entreprise.org/gitroot/tiramisu 2013-06-04 17:42:30 +02:00
gwen 5a7d711d5a report: root menu works again 2013-06-04 17:42:21 +02:00
Emmanuel Garette 2751a2694a RequirementRecursiveError => RequirementError
Properties in "apply_requires" are now transitive (but only if tested property is in properties list)
New requirement option (a boolean), don't touch properties if PropertyError in "apply_requires"
2013-05-31 23:30:00 +02:00
gwen c6c422f472 docstrings and api 2013-05-23 17:51:50 +02:00
gwen 879a415e75 add docstrings 2013-05-23 14:55:52 +02:00
gwen 0e6032dd88 new api documentation 2013-05-21 18:42:56 +02:00
gwen 480ed190aa Merge branch 'master' of ssh://git.labs.libre-entreprise.org/gitroot/tiramisu 2013-05-21 11:38:02 +02:00
gwen 9acb522791 doc is ready for the new api refactoring 2013-05-21 11:37:39 +02:00
Emmanuel Garette e131fdc5a5 add cfgimpl_get_children for MetaConfig and informations 2013-05-21 11:09:09 +02:00
Emmanuel Garette 1d8c248d1b Multi: don't touch slave's value if it's default one's + don't check slave properties (if, for example, disabled for example) 2013-05-21 11:09:09 +02:00
gwen d6098f353e refactoring doc for the new API 2013-05-17 12:11:14 +02:00
gwen 988bd659b8 refactoring the doc for the 0.55 new API 2013-05-15 17:35:49 +02:00
gwen 89dca8d707 suppress get_consistencies() method 2013-05-14 17:40:42 +02:00
Emmanuel Garette 536eb27904 multi, None and validation 2013-05-10 22:34:07 +02:00
gwen bd489346a9 docstrings 2013-05-10 16:02:27 +02:00
Emmanuel Garette c91e7eff97 if not need, don't validate 2013-05-10 16:00:53 +02:00
gwen c13846238d add philippe as a contributor 2013-05-10 15:45:40 +02:00
Emmanuel Garette fa5d643aee tiramisu/autolib.py: optimpl_ => impl_
tiramisu/option.py: consistency simplication and allow multi
tiramisu/option.py: don't touch cache if force_permissive or force_properties
tiramisu/values.py: set validate paramaters in Multi()
2013-05-10 15:10:06 +02:00
Emmanuel Garette 6ffd71a43e DomainnameOption now works with default value 2013-05-10 09:27:54 +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
Emmanuel Garette 1b29793e0f compare option 2013-05-05 21:43:19 +02:00
Emmanuel Garette 2d57ed160e work on MetaConfig 2013-05-02 11:34:57 +02:00
Emmanuel Garette 9ceaa4b235 tiramisu/i18n.py: pep8 compliants 2013-05-02 11:23:47 +02:00
Emmanuel Garette bcfc0cd41b tiramisu/setting.py: _get_properties and validate_properties are now more easier to read and has best performance 2013-05-02 11:23:04 +02:00
Emmanuel Garette 2c5bbb7bc0 Requires need option, not path
Valid requires
2013-04-26 14:40:44 +02:00
Emmanuel Garette 509f41e14c missing properties in PropertiesOptionError 2013-04-24 17:40:16 +02:00
Emmanuel Garette f28288fbba In make_dict check PropertyConfigError for OptionDescription
Begin work's on MetaConfig
2013-04-24 11:47:01 +02:00
Emmanuel Garette f0ef1734f4 add a test for force_store_value in read_only mode 2013-04-23 19:01:03 +02:00