Commit graph

286 commits

Author SHA1 Message Date
Emmanuel Garette
2d063f8170 coverages 2018-09-15 22:44:49 +02:00
Emmanuel Garette
84d1f85b90 test if new_config copy owner
owners.meta is no more a special owners
2018-09-15 10:45:36 +02:00
Emmanuel Garette
87594307c9 copy context owner when user copied a config/metaconfig
Context owner is now in values (no more in settings).
The context owner is set in storage.
So when copy/deepcopy a config, owner is copied to.
For user, when export values, context owner is not returned by default.
2018-09-15 10:34:15 +02:00
Emmanuel Garette
e6cbcde927 remove all properties 2018-09-13 08:28:59 +02:00
Emmanuel Garette
cd7977eae6 coverage 2018-09-12 21:05:14 +02:00
Emmanuel Garette
aa9aef6e78 remove _cache_paths (path is now directly in option)
better TiramisuAPI support
2018-09-08 20:17:20 +02:00
Emmanuel Garette
05404e89bc remove _getcontext in Settings 2018-09-07 06:14:52 +02:00
Emmanuel Garette
09c9fa4906 context is not needed for impl_getpath 2018-09-06 23:16:17 +02:00
Emmanuel Garette
1ef82af5d1 simplify meta support 2018-09-05 22:46:45 +02:00
Emmanuel Garette
ec169a8dc6 optimisations 2018-09-04 08:36:02 +02:00
Emmanuel Garette
71ec5b7148 split validate_properties and calc raises properties 2018-09-01 06:59:20 +02:00
Emmanuel Garette
6ceeb43962 makedict with masterslaves 2018-08-19 15:19:42 +02:00
Emmanuel Garette
201f7d2592 add some tests for dynoptiondescription + correction 2018-08-19 09:20:20 +02:00
Emmanuel Garette
85e9e8d71a no more restore_validation 2018-08-18 10:03:08 +02:00
Emmanuel Garette
26095734bf better setcache implementation 2018-08-18 08:35:30 +02:00
Emmanuel Garette
89ccfa8aa1 setpermissive => setpermissives 2018-08-18 08:14:47 +02:00
Emmanuel Garette
b381e0322f force_permissive +> permissive 2018-08-18 08:06:29 +02:00
Emmanuel Garette
493cec1b80 setting_properties > properties 2018-08-18 07:51:04 +02:00
Emmanuel Garette
ee1f07ce7e simplify config_bag 2018-08-17 23:11:25 +02:00
Emmanuel Garette
bf519499d4 metaconfig support 2018-08-17 22:12:50 +02:00
Emmanuel Garette
7a4a22f52d do not validate 'warnings' in make_dict 2018-08-17 21:05:58 +02:00
Emmanuel Garette
81666b6303 config is context in ConfigBag 2018-08-02 22:35:40 +02:00
Emmanuel Garette
41c17004d2 ConfigBag optimisation 2018-08-01 08:37:58 +02:00
Emmanuel Garette
b10f02a8e9 cache in dictionary storage 2018-06-25 21:40:16 +02:00
Emmanuel Garette
50a2ab4186 can set valid value for an option with invalid consistency 2018-06-02 08:35:05 +02:00
Emmanuel Garette
b442d52289 can use requires with self option 2018-04-25 19:12:54 +02:00
Emmanuel Garette
2018a92b66 improvement 2018-04-22 10:43:19 +02:00
Emmanuel Garette
3d6696b26d update translation 2018-04-11 18:32:13 +02:00
Emmanuel Garette
605163ab4a some improvment 2018-04-11 16:36:15 +02:00
Emmanuel Garette
51d420b29d add test for properties 2018-04-11 08:40:59 +02:00
Emmanuel Garette
54cb73c2cc some corrections 2018-04-10 22:46:53 +02:00
Emmanuel Garette
9e378faef0 simplify find() in api and PropertiesOptionError 2018-04-10 22:42:20 +02:00
Emmanuel Garette
9ea373efdf better dynoption support 2018-04-09 21:37:49 +02:00
Emmanuel Garette
c3be5e82ba update help() in api 2018-04-07 20:15:19 +02:00
Emmanuel Garette
b2cc5f7913 remove dead code 2018-04-06 23:51:25 +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
dc84608348 allow force_default_on_freeze for master if frozen 2018-04-03 15:51:45 +02:00
Emmanuel Garette
95849d2e01 requires needs force_permissive 2018-03-31 21:17:37 +02:00
Emmanuel Garette
6921e05c0e corrections in dynoption/masterslaves 2018-03-24 22:37:48 +01:00
Emmanuel Garette
d5d826f967 adapt tests 2018-03-19 08:33:53 +01:00
Emmanuel Garette
821f36ea65 tiramisu-web adaptation 2018-01-26 07:33:47 +01:00
Emmanuel Garette
3ff0701ef2 metaconfig 2018-01-03 21:07:51 +01:00
Emmanuel Garette
16a160340c submulti 2017-12-30 18:32:11 +01:00
Emmanuel Garette
cfb4db2559 add requires test 2017-12-29 11:38:53 +01:00
Emmanuel Garette
a40adea1d9 works on permissive 2017-12-28 11:47:40 +01:00
Emmanuel Garette
2ce251a8aa cache not expired be defaut 2017-12-23 20:34:19 +01:00
Emmanuel Garette
d26626a1f9 settings 2017-12-23 20:21:22 +01:00
Emmanuel Garette
7ab479f628 reorganise consistencies 2017-12-23 10:40:57 +01:00
Emmanuel Garette
538e6a792a add config_bag and convert some tests 2017-12-19 23:11:45 +01:00
Emmanuel Garette
b5f785d62c convert tests 2017-12-13 22:15:34 +01:00
Emmanuel Garette
a07e916153 reorganisation 2017-12-07 21:42:04 +01:00
Emmanuel Garette
48e172a59a correction on test test_multi.py 2017-12-05 21:49:19 +01:00
Emmanuel Garette
924ac4e597 reorganise symlinkoption 2017-12-04 20:05:36 +01:00
Emmanuel Garette
9831f7cf0c add test for master/slave and callback 2017-11-28 22:42:30 +01:00
Emmanuel Garette
527ae40950 refactor 2017-11-23 16:56:14 +01:00
Emmanuel Garette
119ca85041 refactor 2017-11-20 17:01:36 +01:00
Emmanuel Garette
93fe29b651 - add api.owner.get() to get default owner for a context + tests
- slave: get length for a specified slave and test
- add test for deref objects and default_multi
- add issubmulti, getdefault, getdefaultmulti
- start metaconfig support in api
2017-11-16 21:30:07 +01:00
Emmanuel Garette
007a22ca94 refactor and better test in api 2017-11-13 22:45:53 +01:00
Emmanuel Garette
a8d022b67f Merge branch 'feature/new_api' into feature/3.0 2017-11-12 20:17:29 +01:00
Emmanuel Garette
6c0253ae35 update api 2017-11-12 20:11:56 +01:00
Emmanuel Garette
7ab7b810dc refactor 2017-11-12 14:33:05 +01:00
Emmanuel Garette
2e412b64fd api: permissive => forcepermissive
api: add permissive object
test api: permissive
config: unwrap_from_path check properties for option, not only optiondescription
option: _RegexpOption => RegexpOption
2017-11-03 21:52:13 +01:00
Emmanuel Garette
22a4aa81dc first version of new api 2017-10-22 15:14:25 +02:00
Emmanuel Garette
e32820c913 save indexed value in cache is not necessary 2017-09-22 19:51:26 +02:00
Emmanuel Garette
1d251374a1 reorganise code 2017-07-23 18:14:34 +02:00
Emmanuel Garette
57a47763d6 remove option's storage 2017-07-22 16:26:06 +02:00
Emmanuel Garette
5ca2e32ac5 coverage 2017-07-21 22:34:41 +02:00
Emmanuel Garette
32e88299e2 remove pickle dump/load support 2017-07-21 18:46:11 +02:00
Emmanuel Garette
ddaadb0701 coverage 2017-07-21 18:03:34 +02:00
Emmanuel Garette
7fb0ee2575 permissive only if needed + global properties are in metaconfig 2017-07-16 12:30:13 +02:00
Emmanuel Garette
d445963429 add permissive cache 2017-07-13 22:04:06 +02:00
Emmanuel Garette
dadf859905 better cache 2017-07-08 15:59:56 +02:00
Emmanuel Garette
9b78f46e9d add 'operator' to requirement 2017-05-20 16:28:19 +02:00
Emmanuel Garette
b4cab93e85 better error message with requirementerror 2017-05-05 21:44:47 +02:00
Emmanuel Garette
6ca3e236f9 reset cache when permissive is added 2017-04-20 11:20:37 +02:00
Emmanuel Garette
d8f36766ee coverage for tiramisu/option/masterslave.py 2017-02-04 14:34:56 +01:00
Emmanuel Garette
2db15e193e require with inverse 2017-01-30 19:23:52 +01:00
Emmanuel Garette
f497e99002 remove unicode decode error 2017-01-19 21:38:16 +01:00
Emmanuel Garette
89fd367b20 validator's function can have 1 arg, 2 args or 3 args 2017-01-12 21:58:53 +01:00
Emmanuel Garette
df90e74819 mandatories masterslaves with consistency and default value is acceptable 2016-12-07 17:28:31 +01:00
Emmanuel Garette
fb16dd2a79 slave's requires with multi is different than slave's requires with non multi option 2016-11-14 21:14:45 +01:00
Emmanuel Garette
fce5a8735e better error message 2016-10-24 21:59:40 +02:00
Emmanuel Garette
44dfd21ff6 better error msg 2016-10-23 23:18:06 +02:00
Emmanuel Garette
9a912376b9 simplify apply_requires 2016-10-23 09:38:35 +02:00
Emmanuel Garette
2e4fdbca03 transitive in apply_requires should only by apply if properties are same has testing action 2016-10-12 22:17:04 +02:00
Emmanuel Garette
19b676967d better propertyerror message 2016-09-14 20:17:25 +02:00
Emmanuel Garette
44d585a5e2 better mandatory/empty support for mandatory_warnings 2016-06-29 21:42:54 +02:00
Emmanuel Garette
9adfffe339 set force_permissive to append 2016-03-17 23:16:21 +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
f4307b9122 cannot append properties for option with forbidden_set_properties 2016-01-25 15:49:40 +01:00
Emmanuel Garette
b521c459ee remove all try/except 2016-01-03 21:18:52 +01:00
Emmanuel Garette
d0e2b5d8c4 remove some try/except 2015-12-30 22:32:07 +01:00
Emmanuel Garette
4d4d789c8a simplification 2015-12-17 22:41:57 +01:00
Emmanuel Garette
59f59b0b1b add some optimisation 2015-12-14 23:37:15 +01:00
Emmanuel Garette
98200ecae5 improvemnt information 2015-11-30 15:55:34 +01:00
Emmanuel Garette
a521a6d322 requires could be apply to a slave and properties could be different 2015-11-29 23:03:08 +01:00
Emmanuel Garette
54ca54e505 separate value in slave 2015-11-19 22:25:00 +01:00
Emmanuel Garette
a248508498 extend properties must save setting only if all properties are correct 2015-11-01 11:12:27 +01:00
Emmanuel Garette
8d33fd4500 setting must have public method to get getproperties with path 2015-11-01 10:57:36 +01:00
Emmanuel Garette
a0de1109f7 optimise mandatory_warnings 2015-10-29 09:03:13 +01:00