Commit Graph

52 Commits

Author SHA1 Message Date
ac6ea1e7e4 support delitem for Multi 2017-03-17 21:27:42 +01:00
722779ebf7 coverage 2017-02-03 23:39:24 +01:00
c81a2bcdbf better sqlalchemy integration 2016-10-01 20:15:08 +02:00
6d71749014 force_store_value is rebuild if needed 2016-09-22 08:27:18 +02:00
7305cfa134 python 3.4 support 2016-03-19 21:27:37 +01:00
4d4d789c8a simplification 2015-12-17 22:41:57 +01:00
ab555966f7 use python-coverage to delete dead part of code 2015-11-24 10:58:19 +01:00
5ea92d3460 need new settings when create fake_config 2015-09-17 19:14:56 +02:00
44cd618704 remove pep8 validation errors 2015-07-24 17:54:10 +02:00
4310d59991 add force_permissive to config __iter__ 2014-10-26 10:26:23 +01:00
9ad6cd905c allow number as first letter of a domainname with netbios type 2014-10-25 22:58:46 +02:00
9f3d676280 reduce memory usage 2014-10-25 22:11:31 +02:00
6d8137160c 'getattr' in optiondescription can return a bound method 2014-04-15 21:48:31 +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
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
194c82faad tests pass now with dictionary and sqlalchemy storage 2014-02-16 23:37:27 +01:00
5646fc35a2 Merge branch 'master' into orm
Conflicts:
	test/test_parsing_group.py
2014-02-03 22:11:58 +01:00
8d10ad4002 add tests 2014-02-02 22:47:46 +01:00
02a987b39d sqlalchemy 2014-01-30 22:55:15 +01:00
880b6366eb Merge branch 'master' into orm
Conflicts:
	tiramisu/setting.py
2014-01-25 16:39:32 +01:00
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
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
73745be440 Important behavior change : to add default_multi value, now use Multi.append(), not Multi.append(None) 2013-12-09 17:59:39 +01:00
6e4f19eebe more tests 2013-12-09 15:43:45 +01:00
374c56a9c8 first version with sqlalchemy option's storage 2013-11-23 23:34:17 +01:00
gwen
162ae02df8 refactor (warnings_only) 2013-09-27 09:52:18 +02:00
aeeaf6ec14 impl_get_information and impl_set_information are, now, persistent in storage 2013-09-03 10:38:38 +02:00
eb62d0c4a4 add test for impl_get_path_by_opt and impl_get_opt_by_path 2013-08-29 09:29:28 +02:00
gwen
fbf05ba5e4 python 3 compatibility
remove __eq__ and __ne__ in Option
2013-08-28 21:13:42 +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
f482737a47 add test to known if has a value + some corrections 2013-08-24 23:10:35 +02:00
e6a183c00d test get_modified_values 2013-08-24 22:54:02 +02:00
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
gwen
3d67e35447 documentation on the tests 2013-08-22 12:17:10 +02:00
b6bb685ca5 key is now always path and change opt by path dictionary storage 2013-08-21 22:21:50 +02:00
c06659012b Config: __str__ raise if no str/unicode value 2013-07-03 21:56:31 +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
682d9fe207 add option name's validation and rename Option method with objimpl_ 2013-04-20 21:58:52 +02:00
656b751995 mandatory is a true property (no more MandatoryError) + tests 2013-04-16 22:44:16 +02:00
e6f00948f3 optimisations and all is properties 2013-04-03 12:20:26 +02:00
gwen
ccf75aac89 tests for get_home_by_paths 2013-03-15 09:24:43 +01:00
gwen
9259a6e3f7 values are in value objects now 2013-02-07 16:20:21 +01:00
gwen
e13fec23fe doc for the settings 2012-11-19 16:48:47 +01:00
gwen
eb7e393864 the value owner is a string now 2012-11-15 10:55:14 +01:00
gwen
09dba4b959 suppression of the override 2012-11-12 12:06:58 +01: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
97b000bf1d possibility to reset a value 2012-06-29 10:46:44 +02:00