Emmanuel Garette
df77bc8738
test coverage
2018-09-22 17:45:52 +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
f6a9b88795
support multiple metaconfig and prefix
2018-09-13 17:00:52 +02:00
Emmanuel Garette
620eaa6461
can remove config from a metaconfig
2018-09-13 07:00:12 +02:00
Emmanuel Garette
657b401124
can remove all data in options (value, properties and permissives) with new function in API: c.config.reset()
2018-09-09 13:50:38 +02:00
Emmanuel Garette
6110a37cc7
option.dict => value.dict
2018-09-09 12:21:47 +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
d61d1c2931
Return Config not TiramisuAPI
2018-09-06 19:28:04 +02:00
Emmanuel Garette
1ef82af5d1
simplify meta support
2018-09-05 22:46:45 +02:00
Emmanuel Garette
1816813f92
duplicate => copy + add deepcopy
2018-09-05 20:22:16 +02:00
Emmanuel Garette
726d6c8bfd
make_dict => dict, option.dict => config.dict
2018-08-23 23:14:22 +02:00
Emmanuel Garette
bf519499d4
metaconfig support
2018-08-17 22:12:50 +02:00
Emmanuel Garette
f6e963ae38
remove all getapi in tests
2018-08-15 08:35:22 +02:00
Emmanuel Garette
a37a37cc44
return tiramisuAPI
2018-08-14 22:25:31 +02:00
Emmanuel Garette
3210a54ab8
config => KernelConfig + Config in api
2018-08-14 22:15: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
605163ab4a
some improvment
2018-04-11 16:36:15 +02:00
Emmanuel Garette
9e378faef0
simplify find() in api and PropertiesOptionError
2018-04-10 22:42:20 +02:00
Emmanuel Garette
5eb2f04202
find in api return an api object
2018-04-10 12:33:51 +02:00
Emmanuel Garette
c3be5e82ba
update help() in api
2018-04-07 20:15:19 +02:00
Emmanuel Garette
de77cd1027
reset cache only if calculated value return a new value
2018-03-31 23:09:40 +02:00
Emmanuel Garette
d5d826f967
adapt tests
2018-03-19 08:33:53 +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
5a1987f2e6
Add MasterSlaves object
2017-10-14 13:33:25 +02:00
Emmanuel Garette
32252e619b
reorganise Base and Option
2017-07-24 18:27:24 +02:00
Emmanuel Garette
ddaadb0701
coverage
2017-07-21 18:03:34 +02:00
Emmanuel Garette
be43c95ec0
In Config, name and session_id was quite equal, remove name
...
session_id is now validate
set_value return Configs with error
add new_config to MetaConfig
2017-07-19 20:44:38 +02:00
Emmanuel Garette
90a2072fc5
less commit + better meta support
2017-07-16 23:11:12 +02:00
Emmanuel Garette
7fb0ee2575
permissive only if needed + global properties are in metaconfig
2017-07-16 12:30:13 +02:00
Emmanuel Garette
c8bc3093c7
python 3.5 support
2017-07-09 09:49:03 +02:00
Emmanuel Garette
695de030ef
coverage for tiramisu/value.py
2017-02-11 17:22:50 +01:00
Emmanuel Garette
6d71749014
force_store_value is rebuild if needed
2016-09-22 08:27:18 +02:00
Emmanuel Garette
e8764f6173
remove some try/except + consistency not works with submulti
2016-01-03 13:23:15 +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
44cd618704
remove pep8 validation errors
2015-07-24 17:54:10 +02:00
Emmanuel Garette
2ccf92f879
improve GroupConfig/MetaConfig
...
add set_value in GroupConfig
2014-12-01 21:49:50 +01:00
Emmanuel Garette
f03cbeadb7
better performance in find_firsts
...
_is_build_cache not set in dictionary storage
2014-11-10 21:00:30 +01:00
Emmanuel Garette
a067d2cdd9
add some tests
2014-02-04 21:14:30 +01:00
Emmanuel Garette
8d10ad4002
add tests
2014-02-02 22:47:46 +01:00
Emmanuel Garette
feeb9842f5
serialize metaconfig/groupconfig
2013-09-30 16:22:08 +02:00
Emmanuel Garette
7165f73292
add metaconfig
2013-09-17 09:02:10 +02:00
gwen
a894a5e27b
rename API add_owner -> addowner
2013-08-27 16:12:53 +02:00
gwen
551b9fb1e3
getting stated documentation
2013-08-26 17:14:14 +02:00
Emmanuel Garette
e4c129efc5
getowner need now an option
2013-08-24 22:32:54 +02:00
Emmanuel Garette
4c27cb586d
in __setattr__, name should never be object's variable name
...
remove context in type_ find's option
find_first_context return AttributError if no results
2013-08-24 21:26:10 +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
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
2d57ed160e
work on MetaConfig
2013-05-02 11:34:57 +02:00