Commit Graph

196 Commits

Author SHA1 Message Date
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 299e51e806 start works on storage 2014-04-12 22:47:52 +02:00
Emmanuel Garette aa0734591d change None to undefined when it's needed 2014-04-12 21:57:17 +02:00
Emmanuel Garette 3ab0688c46 Arity change, remove force_properties:
* tiramisu/config.py (in cfgimpl_get_home_by_path and getattr)
 * tiramisu/value.py (in getitem):
2014-04-12 21:37:20 +02:00
Emmanuel Garette cd4d3527c7 split tiramisu/option.py and add MasterSlaves object 2014-04-12 17:55:13 +02:00
Emmanuel Garette 967a48412d Merge branch '_getattr' 2014-04-01 09:51:43 +02:00
Emmanuel Garette 0b2e5f90e2 same arity for _getattr and getattr 2014-04-01 09:51:25 +02:00
Emmanuel Garette 1ae6f0c6e8 Merge branch 'mandatory' 2014-04-01 09:29:34 +02:00
Emmanuel Garette 150b490200 config.mandatory_warnings return always None 2014-04-01 09:29:07 +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 f7d31bfa92 Merge branch 'master' into force-cache
Conflicts:
	translations/fr/tiramisu.po
	translations/tiramisu.pot
2014-03-15 10:09:19 +01:00
Emmanuel Garette 544cd93c73 can make_dict with disabled suboption 2014-03-12 14:57:36 +01:00
Emmanuel Garette 6e8b570a37 mandatory_warnings is now in values and add force_cache to values 2014-03-09 20:06:44 +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 a067d2cdd9 add some tests 2014-02-04 21:14:30 +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 5897231421 Merge branch 'master' into orm
Conflicts:
	test/test_dereference.py
	test/test_state.py
	tiramisu/config.py
	tiramisu/value.py
2014-02-02 18:52:13 +01:00
Emmanuel Garette 26158fc3c4 update test for metaconfig serialization 2014-02-02 18:33:21 +01:00
Emmanuel Garette f8faec408f Merge branch 'master' into metaconfig 2014-02-02 18:21:22 +01:00
Emmanuel Garette 8709386570 __getattr__ OD 2014-02-01 18:35:18 +01:00
Emmanuel Garette 313b03b246 cache in sql works 2014-02-01 16:26:23 +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 3b3e5216fe cache 2014-01-25 10:15:25 +01:00
Emmanuel Garette cde04d654a Merge branch 'master' into orm
Conflicts:
	tiramisu/setting.py
2014-01-09 20:32:17 +01:00
Emmanuel Garette 172a33f842 mandatory_warnings never raises ConfigError 2013-12-16 14:20:35 +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 374c56a9c8 first version with sqlalchemy option's storage 2013-11-23 23:34:17 +01:00
gwen 384b30210c find and find_first's new argument 2013-11-04 17:15:47 +01:00
Emmanuel Garette b606d23801 add imp_meta 2013-10-15 18:23:36 +02:00
Emmanuel Garette feeb9842f5 serialize metaconfig/groupconfig 2013-09-30 16:22:08 +02:00
Emmanuel Garette 6b7db20716 Merge branch 'master' into metaconfig 2013-09-28 22:49:50 +02:00
Emmanuel Garette b7f85b8559 Merge branch 'master' into lgpl 2013-09-28 18:43:46 +02:00
gwen 162ae02df8 refactor (warnings_only) 2013-09-27 09:52:18 +02:00
Emmanuel Garette 3073940ca4 can't assign to an OptionDescription 2013-09-26 22:35:12 +02:00
Emmanuel Garette a08af2383d comment config 2013-09-23 22:55:54 +02:00
Emmanuel Garette 8a7078d3b0 gpl to lgpl 2013-09-22 22:33:09 +02:00
Emmanuel Garette d2f101b7bb didnot getattr a second time in find if not needed 2013-09-22 21:54:07 +02:00
Emmanuel Garette 051f1c8774 tiramisu/config.py:
- find byvalue support Multi

tiramisu/value.py:
 - Multi's pop comment
2013-09-22 21:23:12 +02:00
Emmanuel Garette c84d13a1c6 we can serialize Config now 2013-09-22 20:57:52 +02:00
Emmanuel Garette 7165f73292 add metaconfig 2013-09-17 09:02:10 +02:00
Emmanuel Garette f8b0a53c3f cache is always a dictionary in memory 2013-09-07 10:31:39 +02:00
Emmanuel Garette 22bfbb9fa4 storage no more in setting.py, code is now in storage/__init__.py 2013-09-06 23:15:36 +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
gwen fbf05ba5e4 python 3 compatibility
remove __eq__ and __ne__ in Option
2013-08-28 21:13:42 +02:00