Commit Graph

253 Commits

Author SHA1 Message Date
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
Emmanuel Garette 9da7e89176 empty property only available for multi 2015-07-27 09:32:42 +02:00
Emmanuel Garette 8e7a32de08 add global 'empty' property, this property raise mandatory PropertiesOptionError if multi or master have empty value 2015-07-26 19:13:25 +02:00
Emmanuel Garette 6cc74506fb Some optimisations 2015-05-03 09:56:03 +02:00
Emmanuel Garette 487b99b32c for a multi mandatory, allow [] with allow_empty_list attribut 2015-04-20 14:49:43 +02:00
Emmanuel Garette 6fc921fc19 difference between option/optiondescription in PropertiesOptionError message 2015-04-19 09:25:49 +02:00
Emmanuel Garette d959020eed ability to disable warnings validation 2015-04-18 23:11:57 +02:00
Emmanuel Garette 2ccf92f879 improve GroupConfig/MetaConfig
add set_value in GroupConfig
2014-12-01 21:49:50 +01:00
Emmanuel Garette ed3373cff0 bad characters in DomainnameOption could be in warning level 2014-10-26 09:38:17 +01:00
Emmanuel Garette 9f3d676280 reduce memory usage 2014-10-25 22:11:31 +02:00
Emmanuel Garette 71f8926fca better support for sqlalchemy storage 2014-07-06 15:31:57 +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 d1e86f6d48 Merge branch 'log' 2014-04-03 22:16:08 +02:00
Emmanuel Garette da434a4273 add logger in validation 2014-04-03 22:15:41 +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 a04a61f1a4 Merge branch 'master' into lgpl 2014-03-15 10:11:17 +01:00
Emmanuel Garette d3f9d20ab5 add extend in config setting 2014-03-08 18:53:22 +01:00
Emmanuel Garette d5b83c123c tiramisu/setting.py : properties store in cache was a reference to a list modified in validation, should copy properties in cache 2014-02-20 16:55:35 +01:00
Daniel Dehennin f8ac263c86 Hotfix release 1.0~2.4.1
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iF4EABEKAAYFAlLyBpcACgkQWjgIUPVihwwhyQD/Ri/R6wO/zk49ILx5UzPdDDcU
 UCWxsKvbCIloO76BMcIA/0nx/6PUVc/v3iag5reNvtrXJQzdKlprmkjvBhLalVJS
 =w09x
 -----END PGP SIGNATURE-----

Merge tag 'release/1.0_2.4.1'

Hotfix release 1.0~2.4.1
2014-02-05 11:22:17 +01:00
Emmanuel Garette 6f5d471db1 if option with requires has a property, calculated properties are store in storage 2014-02-05 10:37:39 +01:00
Emmanuel Garette 98bd35ad36 Merge branch 'master' into orm
Conflicts:
	tiramisu/config.py
	tiramisu/option.py
2014-02-04 21:54:30 +01:00
Emmanuel Garette c52b2f84f4 if option with requires has a property, calculated properties are store in storage 2014-02-04 21:40:07 +01:00
Emmanuel Garette 313b03b246 cache in sql works 2014-02-01 16:26:23 +01:00
Emmanuel Garette 02a987b39d sqlalchemy 2014-01-30 22:55:15 +01:00
Emmanuel Garette a1dd2cfce7 require works well in sqlalchemy storage 2014-01-27 17:16:05 +01:00
Emmanuel Garette d3f42efe85 typo 2014-01-25 18:38:51 +01:00
Emmanuel Garette 880b6366eb Merge branch 'master' into orm
Conflicts:
	tiramisu/setting.py
2014-01-25 16:39:32 +01:00
Emmanuel Garette 138018dfe9 if we delete all reference to a Config and we have reference to old SubConfig, Values, Multi or Settings, make a ConfigError instead of AttributError on NoneType object 2014-01-25 11:20:11 +01:00
Emmanuel Garette cbfb5a45b0 Merge branch 'master' into orm 2014-01-25 10:22:17 +01:00