ab555966f7
use python-coverage to delete dead part of code
2015-11-24 10:58:19 +01:00
44cd618704
remove pep8 validation errors
2015-07-24 17:54:10 +02:00
10768a6067
refactor validation
2015-04-18 22:53:45 +02:00
c566ad1111
valid default/callback value in consistencies
2015-03-08 12:03:49 +01:00
bc65caa4dc
mandatory master/slave's consistency with default value as slave
2014-12-07 14:39:23 +01:00
4fde28a15e
in_network's consistency now verify that IP is not network or broadcast's IP + ip_netmask's consistency now verify that IP is not broadcast's IP
2014-12-01 23:16:00 +01:00
71e69cd0bf
if consistency with multiple option return if transitive
2014-12-01 23:02:55 +01:00
7646071efd
propertyerror are transitive in consistency, now it's possible to set non-transitive consistency
2014-12-01 22:58:53 +01:00
471af4fd75
cannot add unvalaible consistency for an option
2014-10-25 22:48:42 +02:00
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
cd4d3527c7
split tiramisu/option.py and add MasterSlaves object
2014-04-12 17:55:13 +02:00
88b5af9810
Merge branch 'master' into better_warnings
2014-03-12 22:13:20 +01:00
ff802b46e5
consistencies can make a warning instead of raises
...
for that, you have to set something like:
a.impl_add_consistency('not_equal', b, warnings_only=True)
warning product now adapted message
2014-03-12 21:56:53 +01:00
5f46763696
add test for consistency with callback
2014-03-12 16:44:48 +01:00
d7b04ebed0
add consistency in_network for IPOption
...
This new consistency can validate that an IPv4 is a specified (network/netmask) network
2014-03-11 18:57:19 +01:00
21c8ed5d76
Merge branch 'master' into orm
...
Conflicts:
test/test_option_consistency.py
test/test_state.py
tiramisu/option.py
2014-02-06 22:24:50 +01:00
e7531e1fda
more tests
2014-02-06 22:17:20 +01:00
72f06bc29d
properties option in consistencies are now allowed
2014-02-06 19:19:48 +01:00
02a987b39d
sqlalchemy
2014-01-30 22:55:15 +01:00
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
c58de18b62
add more tests
2013-12-09 18:56:29 +01:00
374c56a9c8
first version with sqlalchemy option's storage
2013-11-23 23:34:17 +01:00
70f684e70c
tiramisu/option.py:
...
separate _consistencies (for Option) and _cache_consistencies (for OptionDescription)
_launch_consistency need index for multi's option
_cons_not_equal support multi options
tiramisu/value.py:
Multi._validate support consistency
2013-09-28 17:05:01 +02:00
482dfec7f2
consistancies can have more than one option
...
add _cons_broadcast
2013-09-27 23:27:08 +02:00
3b733d1b4f
support cache consistencies + no consistencies for a symlink + test
2013-09-03 22:41:18 +02:00
36ed6f874f
add some tests for values
...
cannot use __setitem__ to set value for an option
in append, len should not greater than master option
2013-08-25 18:06:07 +02:00
e4c129efc5
getowner need now an option
2013-08-24 22:32:54 +02:00
536eb27904
multi, None and validation
2013-05-10 22:34:07 +02:00
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
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
2c5bbb7bc0
Requires need option, not path
...
Valid requires
2013-04-26 14:40:44 +02:00
7cd44d6886
remove an unused callback in test
2013-04-23 11:41:16 +02:00
e883e5b89e
remove _setoption in SymLinkOption
...
objimpl_ => optimpl_
ConflictConfigError => ConflictError
add read_write/read_only/getowner in Config
2013-04-22 09:19:05 +02:00
d4ef47759e
Manipulate properties is now more convenient:
...
c.cfgimpl_get_settings().has_property('hidden') => 'hidden' in c.cfgimpl_get_settings()
c.cfgimpl_get_settings().has_property('hidden', option1) => 'frozen' in c.cfgimpl_get_settings()[opt]
c.cfgimpl_get_settings().get_properties(option1) => c.cfgimpl_get_settings()[option1]
c.cfgimpl_get_settings().get_properties(option1) => c.cfgimpl_get_settings()[option1]
c.cfgimpl_get_settings().add_property('hidden', option1) => c.cfgimpl_get_settings()[optiont1].append('hidden')
c.cfgimpl_get_settings().del_property('hidden', option1) => c.cfgimpl_get_settings()[optiont1].remove('hidden')
c.cfgimpl_get_settings().enable_property('hidden') => c.cfgimpl_get_settings().append('hidden')
c.cfgimpl_get_settings().disable_property('hidden') => c.cfgimpl_get_settings().remove('hidden')
2013-04-20 17:30:05 +02:00
54fe8d0f4b
cache for properties is now in get_properties and not for validate_properties
2013-04-20 11:25:14 +02:00
d5e1cb6576
pass force_properties to value's _setitem and remove config's setoption
2013-04-17 23:19:53 +02:00
3170237c8e
properties validation not in setting and now launch when modify multi
2013-04-17 21:33:34 +02:00
9357b342c1
review exception
2013-04-14 12:01:32 +02:00
26568dc45a
Values validate now value
2013-04-11 11:30:58 +02:00
e6f00948f3
optimisations and all is properties
2013-04-03 12:20:26 +02:00
gwen
9259a6e3f7
values are in value objects now
2013-02-07 16:20:21 +01:00
gwen
cd50cf7551
owners are *real* objects now
2012-12-10 14:10:05 +01:00
gwen
09dba4b959
suppression of the override
2012-11-12 12:06:58 +01:00
gwen
d8370b008b
commented code for unicity by name
2012-08-16 11:42:24 +02:00
gwen
753b0a55c7
opt.hidden and opt.disabled is replaced by opt.properties
2012-08-13 12:49:58 +02:00
gwen
45ff59aea2
tests are passing again after package renaming
2012-07-23 14:52:08 +02:00
gwen
9aa9d9780a
everything in src for packaging purposes
2012-07-13 09:42:14 +02:00
gwen
d1f97ca50f
everything in src for packaging purposes
2012-07-13 09:37:25 +02:00
gwen
8b16814ab4
first revision
2012-05-13 20:48:51 +02:00