Commit Graph

61 Commits

Author SHA1 Message Date
Emmanuel Garette e3be95a274 when list, return a list 2018-07-22 11:51:48 +02:00
Emmanuel Garette f30ca3dc46 update sqlite storage 2018-06-09 18:59:40 +02:00
Emmanuel Garette 2b08ab35d6 some tests 2018-04-12 23:04:33 +02:00
Emmanuel Garette c3be5e82ba update help() in api 2018-04-07 20:15:19 +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 d5d826f967 adapt tests 2018-03-19 08:33:53 +01: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 c8bc3093c7 python 3.5 support 2017-07-09 09:49:03 +02:00
Emmanuel Garette ac6ea1e7e4 support delitem for Multi 2017-03-17 21:27:42 +01:00
Emmanuel Garette 722779ebf7 coverage 2017-02-03 23:39:24 +01:00
Emmanuel Garette c81a2bcdbf better sqlalchemy integration 2016-10-01 20:15:08 +02:00
Emmanuel Garette 6d71749014 force_store_value is rebuild if needed 2016-09-22 08:27:18 +02:00
Emmanuel Garette 7305cfa134 python 3.4 support 2016-03-19 21:27:37 +01:00
Emmanuel Garette 4d4d789c8a simplification 2015-12-17 22:41:57 +01:00
Emmanuel Garette ab555966f7 use python-coverage to delete dead part of code 2015-11-24 10:58:19 +01:00
Emmanuel Garette 5ea92d3460 need new settings when create fake_config 2015-09-17 19:14:56 +02:00
Emmanuel Garette 44cd618704 remove pep8 validation errors 2015-07-24 17:54:10 +02:00
Emmanuel Garette 4310d59991 add force_permissive to config __iter__ 2014-10-26 10:26:23 +01:00
Emmanuel Garette 9ad6cd905c allow number as first letter of a domainname with netbios type 2014-10-25 22:58:46 +02:00
Emmanuel Garette 9f3d676280 reduce memory usage 2014-10-25 22:11:31 +02:00
Emmanuel Garette 6d8137160c 'getattr' in optiondescription can return a bound method 2014-04-15 21:48:31 +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 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 194c82faad tests pass now with dictionary and sqlalchemy storage 2014-02-16 23:37:27 +01:00
Emmanuel Garette 5646fc35a2 Merge branch 'master' into orm
Conflicts:
	test/test_parsing_group.py
2014-02-03 22:11:58 +01:00
Emmanuel Garette 8d10ad4002 add tests 2014-02-02 22:47:46 +01:00
Emmanuel Garette 02a987b39d sqlalchemy 2014-01-30 22:55:15 +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 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
Emmanuel Garette c58de18b62 add more tests 2013-12-09 18:56:29 +01:00
Emmanuel Garette 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
Emmanuel Garette 6e4f19eebe more tests 2013-12-09 15:43:45 +01:00
Emmanuel Garette 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
Emmanuel Garette aeeaf6ec14 impl_get_information and impl_set_information are, now, persistent in storage 2013-09-03 10:38:38 +02:00
Emmanuel Garette 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
Emmanuel Garette 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
Emmanuel Garette f482737a47 add test to known if has a value + some corrections 2013-08-24 23:10:35 +02:00
Emmanuel Garette e6a183c00d test get_modified_values 2013-08-24 22:54:02 +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
gwen 3d67e35447 documentation on the tests 2013-08-22 12:17: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 c06659012b Config: __str__ raise if no str/unicode value 2013-07-03 21:56:31 +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 682d9fe207 add option name's validation and rename Option method with objimpl_ 2013-04-20 21:58:52 +02:00
Emmanuel Garette 656b751995 mandatory is a true property (no more MandatoryError) + tests 2013-04-16 22:44:16 +02:00
Emmanuel Garette e6f00948f3 optimisations and all is properties 2013-04-03 12:20:26 +02:00