Emmanuel Garette [Tue, 11 Jun 2013 13:36:08 +0000 (15:36 +0200)]
add test for callback not in multi
Emmanuel Garette [Tue, 11 Jun 2013 13:31:20 +0000 (15:31 +0200)]
support of non multi variable
Emmanuel Garette [Tue, 11 Jun 2013 13:10:38 +0000 (15:10 +0200)]
Better support for slave with callback:
- callback must return single value, not a list
- if default value, append slave values with master len
- if not default and append, set default value
gwen [Mon, 10 Jun 2013 15:45:03 +0000 (17:45 +0200)]
fix i18n
gwen [Mon, 10 Jun 2013 15:12:57 +0000 (17:12 +0200)]
raise ConfigError
gwen [Mon, 10 Jun 2013 13:19:00 +0000 (15:19 +0200)]
transitivity in the requirements
gwen [Wed, 5 Jun 2013 12:56:46 +0000 (14:56 +0200)]
report: everything work again
gwen [Wed, 5 Jun 2013 09:19:47 +0000 (11:19 +0200)]
report: options work again
gwen [Tue, 4 Jun 2013 15:42:30 +0000 (17:42 +0200)]
Merge branch 'master' of ssh://git.labs.libre-entreprise.org/gitroot/tiramisu
gwen [Tue, 4 Jun 2013 15:42:21 +0000 (17:42 +0200)]
report: root menu works again
Emmanuel Garette [Fri, 31 May 2013 21:29:20 +0000 (23:29 +0200)]
RequirementRecursiveError => RequirementError
Properties in "apply_requires" are now transitive (but only if tested property is in properties list)
New requirement option (a boolean), don't touch properties if PropertyError in "apply_requires"
gwen [Thu, 23 May 2013 15:51:50 +0000 (17:51 +0200)]
docstrings and api
gwen [Thu, 23 May 2013 12:55:52 +0000 (14:55 +0200)]
add docstrings
gwen [Tue, 21 May 2013 16:42:56 +0000 (18:42 +0200)]
new api documentation
gwen [Tue, 21 May 2013 09:38:02 +0000 (11:38 +0200)]
Merge branch 'master' of ssh://git.labs.libre-entreprise.org/gitroot/tiramisu
gwen [Tue, 21 May 2013 09:37:39 +0000 (11:37 +0200)]
doc is ready for the new api refactoring
Emmanuel Garette [Tue, 21 May 2013 09:09:00 +0000 (11:09 +0200)]
add cfgimpl_get_children for MetaConfig and informations
Emmanuel Garette [Fri, 17 May 2013 16:11:14 +0000 (18:11 +0200)]
Multi: don't touch slave's value if it's default one's + don't check slave properties (if, for example, disabled for example)
gwen [Fri, 17 May 2013 10:11:14 +0000 (12:11 +0200)]
refactoring doc for the new API
gwen [Wed, 15 May 2013 15:35:49 +0000 (17:35 +0200)]
refactoring the doc for the 0.55 new API
gwen [Tue, 14 May 2013 15:40:42 +0000 (17:40 +0200)]
suppress get_consistencies() method
Emmanuel Garette [Fri, 10 May 2013 20:32:42 +0000 (22:32 +0200)]
multi, None and validation
gwen [Fri, 10 May 2013 14:02:27 +0000 (16:02 +0200)]
docstrings
Emmanuel Garette [Fri, 10 May 2013 14:00:46 +0000 (16:00 +0200)]
if not need, don't validate
gwen [Fri, 10 May 2013 13:45:40 +0000 (15:45 +0200)]
add philippe as a contributor
Emmanuel Garette [Fri, 10 May 2013 13:10:06 +0000 (15:10 +0200)]
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()
Emmanuel Garette [Fri, 10 May 2013 07:27:54 +0000 (09:27 +0200)]
DomainnameOption now works with default value
Emmanuel Garette [Wed, 8 May 2013 16:14:42 +0000 (18:14 +0200)]
* 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)
Emmanuel Garette [Sun, 5 May 2013 19:43:19 +0000 (21:43 +0200)]
compare option
Emmanuel Garette [Thu, 2 May 2013 09:34:57 +0000 (11:34 +0200)]
work on MetaConfig
Emmanuel Garette [Thu, 2 May 2013 09:23:47 +0000 (11:23 +0200)]
tiramisu/i18n.py: pep8 compliants
Emmanuel Garette [Thu, 2 May 2013 09:23:04 +0000 (11:23 +0200)]
tiramisu/setting.py: _get_properties and validate_properties are now more easier to read and has best performance
Emmanuel Garette [Fri, 26 Apr 2013 12:40:44 +0000 (14:40 +0200)]
Requires need option, not path
Valid requires
Emmanuel Garette [Wed, 24 Apr 2013 15:40:16 +0000 (17:40 +0200)]
missing properties in PropertiesOptionError
Emmanuel Garette [Wed, 24 Apr 2013 09:47:01 +0000 (11:47 +0200)]
In make_dict check PropertyConfigError for OptionDescription
Begin work's on MetaConfig
Emmanuel Garette [Tue, 23 Apr 2013 17:01:03 +0000 (19:01 +0200)]
add a test for force_store_value in read_only mode
Emmanuel Garette [Tue, 23 Apr 2013 14:43:31 +0000 (16:43 +0200)]
force_store_value store value but not in write mode
Philippe Caseiro [Tue, 23 Apr 2013 14:30:45 +0000 (16:30 +0200)]
Merge branch 'master' of git://git.labs.libre-entreprise.org/tiramisu
Philippe Caseiro [Tue, 23 Apr 2013 14:20:02 +0000 (16:20 +0200)]
* Makefile : Installation des fichiers de langue
Compilation et Installation des fichiers de traductions pour
Tiramisu
Philippe Caseiro [Tue, 23 Apr 2013 12:08:17 +0000 (14:08 +0200)]
Ajout des fichiers de traduction et mise à jour de i18n.py
Support du chargement des locales
gwen [Tue, 23 Apr 2013 12:14:19 +0000 (14:14 +0200)]
'make test' deleted
Emmanuel Garette [Tue, 23 Apr 2013 09:41:16 +0000 (11:41 +0200)]
remove an unused callback in test
Emmanuel Garette [Tue, 23 Apr 2013 08:41:47 +0000 (10:41 +0200)]
tiramisu/values: _empty should not validate with defaultvalue, defaultvalue is already in value
Emmanuel Garette [Mon, 22 Apr 2013 18:42:54 +0000 (20:42 +0200)]
don't raise if check_disabled is True
Emmanuel Garette [Mon, 22 Apr 2013 14:48:56 +0000 (16:48 +0200)]
missing import
Emmanuel Garette [Mon, 22 Apr 2013 14:48:13 +0000 (16:48 +0200)]
callback must be a function and validator support same paramaters has callback
Emmanuel Garette [Mon, 22 Apr 2013 07:19:05 +0000 (09:19 +0200)]
remove _setoption in SymLinkOption
objimpl_ => optimpl_
ConflictConfigError => ConflictError
add read_write/read_only/getowner in Config
Emmanuel Garette [Sat, 20 Apr 2013 19:58:52 +0000 (21:58 +0200)]
add option name's validation and rename Option method with objimpl_
Emmanuel Garette [Sat, 20 Apr 2013 15:30:05 +0000 (17:30 +0200)]
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')
Emmanuel Garette [Sat, 20 Apr 2013 09:25:14 +0000 (11:25 +0200)]
cache for properties is now in get_properties and not for validate_properties
Emmanuel Garette [Fri, 19 Apr 2013 20:42:33 +0000 (22:42 +0200)]
remove expired cache with config.cfgimpl_reset_cache(True)
Emmanuel Garette [Fri, 19 Apr 2013 18:23:34 +0000 (20:23 +0200)]
add SlaveError for slave's length
Emmanuel Garette [Fri, 19 Apr 2013 18:10:55 +0000 (20:10 +0200)]
add SlaveError for slave's length
Emmanuel Garette [Thu, 18 Apr 2013 21:06:14 +0000 (23:06 +0200)]
all multi gestion is now in Multi
Emmanuel Garette [Thu, 18 Apr 2013 18:26:40 +0000 (20:26 +0200)]
* to "reset" a value, now you just have to delete it
config.unwrap_from_path("string").reset(config) => del(config.string)
* add cache for value/setting to 5 secds
to "reset" cache just do: config.cfgimpl_clean_cache()
* can desactivate cache by removing "expire" property
Emmanuel Garette [Wed, 17 Apr 2013 21:19:53 +0000 (23:19 +0200)]
pass force_properties to value's _setitem and remove config's setoption
Emmanuel Garette [Wed, 17 Apr 2013 20:06:10 +0000 (22:06 +0200)]
_empty is u'' for UnicodeOption
Emmanuel Garette [Wed, 17 Apr 2013 19:57:06 +0000 (21:57 +0200)]
MultiTypeError => ValueError
Emmanuel Garette [Wed, 17 Apr 2013 19:50:31 +0000 (21:50 +0200)]
Rename AmbigousOptionError as ConflictOptionError
Emmanuel Garette [Wed, 17 Apr 2013 19:33:34 +0000 (21:33 +0200)]
properties validation not in setting and now launch when modify multi
Emmanuel Garette [Tue, 16 Apr 2013 20:44:16 +0000 (22:44 +0200)]
mandatory is a true property (no more MandatoryError) + tests
Emmanuel Garette [Tue, 16 Apr 2013 10:04:20 +0000 (12:04 +0200)]
only catch PropertiesOptionError
Emmanuel Garette [Tue, 16 Apr 2013 09:51:48 +0000 (11:51 +0200)]
SubConfig: first argument must be a OD
Emmanuel Garette [Tue, 16 Apr 2013 09:30:02 +0000 (11:30 +0200)]
auto_store_value => force_store_value
Emmanuel Garette [Tue, 16 Apr 2013 07:45:42 +0000 (09:45 +0200)]
Add "force_store_value" property. If set, store, for example, calculated value as owner values.
So calculated value are calculate only one time.
Emmanuel Garette [Tue, 16 Apr 2013 07:34:00 +0000 (09:34 +0200)]
add cons_lower + DomainnameOption
Emmanuel Garette [Sun, 14 Apr 2013 10:01:32 +0000 (12:01 +0200)]
review exception
Emmanuel Garette [Sun, 14 Apr 2013 08:14:06 +0000 (10:14 +0200)]
consistencies now a list
Emmanuel Garette [Sat, 13 Apr 2013 21:09:05 +0000 (23:09 +0200)]
add gettext support
Emmanuel Garette [Sat, 13 Apr 2013 20:50:55 +0000 (22:50 +0200)]
attribute in Option now starts with '_'
add ValidateError
add consistancies in Option
remove byattr in find
Emmanuel Garette [Thu, 11 Apr 2013 09:30:58 +0000 (11:30 +0200)]
Values validate now value
Emmanuel Garette [Mon, 8 Apr 2013 14:12:23 +0000 (16:12 +0200)]
don't launch apply_requires more than needed
Emmanuel Garette [Mon, 8 Apr 2013 14:05:56 +0000 (16:05 +0200)]
NoValueReturn is not needed now + apply_requires is now in settings
Emmanuel Garette [Fri, 5 Apr 2013 14:59:48 +0000 (16:59 +0200)]
suppress _cfgimpl_parent and _cfgimpl_get_path() from SubConfig
Emmanuel Garette [Fri, 5 Apr 2013 10:31:50 +0000 (12:31 +0200)]
tiramisu/config.py: _cfgimpl_subconfigs is not used
Emmanuel Garette [Fri, 5 Apr 2013 10:20:33 +0000 (12:20 +0200)]
tiramisu/config.py can specify return type for find ('option', 'value', 'path') and remove get
user need replace config.get(value) by config.find(byname="value", type_='value')
Emmanuel Garette [Thu, 4 Apr 2013 13:14:16 +0000 (15:14 +0200)]
permissives are for a specified option not config
Emmanuel Garette [Thu, 4 Apr 2013 10:16:18 +0000 (12:16 +0200)]
set permissive to cfgimpl_get_home_by_path
Emmanuel Garette [Thu, 4 Apr 2013 09:24:00 +0000 (11:24 +0200)]
rewrite make_dict
Emmanuel Garette [Wed, 3 Apr 2013 15:05:46 +0000 (17:05 +0200)]
Merge branch 'master' of ssh://git.labs.libre-entreprise.org/gitroot/tiramisu
Emmanuel Garette [Wed, 3 Apr 2013 15:05:41 +0000 (17:05 +0200)]
tiramisu/value.py : self.opt => opt + disable permissive in read_write mode
gwen [Wed, 3 Apr 2013 14:01:53 +0000 (16:01 +0200)]
test_option_has_an_api_name temporarily disabled
Emmanuel Garette [Wed, 3 Apr 2013 10:20:26 +0000 (12:20 +0200)]
optimisations and all is properties
gwen [Wed, 27 Mar 2013 16:01:20 +0000 (17:01 +0100)]
build cache builds correctly now
Garette Emmanuel [Wed, 27 Mar 2013 15:41:22 +0000 (16:41 +0100)]
remise en fonction des self._cfgimpl_slots
Garette Emmanuel [Wed, 27 Mar 2013 15:16:15 +0000 (16:16 +0100)]
Le cache des paths est dans l'OptionDescription
Utilisation des slots pour la Config
Il faut 566Mo de mémoire pour charger 50 variantes de 100 serveurs chacuns (5000 serveurs en tout).
ref #5111
Garette Emmanuel [Tue, 26 Mar 2013 09:29:49 +0000 (10:29 +0100)]
works on performante
Garette Emmanuel [Mon, 25 Mar 2013 13:21:30 +0000 (14:21 +0100)]
support break in iterator
Garette Emmanuel [Mon, 25 Mar 2013 10:45:21 +0000 (11:45 +0100)]
add import and name => opt._name
Garette Emmanuel [Wed, 20 Mar 2013 11:37:27 +0000 (12:37 +0100)]
add UnicodeOption
gwen [Fri, 15 Mar 2013 08:24:43 +0000 (09:24 +0100)]
tests for get_home_by_paths
Garette Emmanuel [Thu, 14 Mar 2013 16:51:51 +0000 (17:51 +0100)]
cfgimpl_permissive is not the permissive param
Garette Emmanuel [Thu, 14 Mar 2013 15:07:26 +0000 (16:07 +0100)]
get_home_by_path is a public method
Garette Emmanuel [Thu, 14 Mar 2013 10:31:44 +0000 (11:31 +0100)]
add permissive in config
Garette Emmanuel [Wed, 13 Mar 2013 10:29:29 +0000 (11:29 +0100)]
informations attribute finally works
Garette Emmanuel [Tue, 12 Mar 2013 16:45:28 +0000 (17:45 +0100)]
adds information attribute to an option
Garette Emmanuel [Tue, 12 Mar 2013 15:54:39 +0000 (16:54 +0100)]
adds information attribute to an option
gwen [Thu, 7 Mar 2013 10:02:18 +0000 (11:02 +0100)]
iter on all objects
Garette Emmanuel [Wed, 6 Mar 2013 16:17:33 +0000 (17:17 +0100)]
generate correct len for slave if no value
gwen [Wed, 6 Mar 2013 08:34:07 +0000 (09:34 +0100)]
Merge branch 'master' of ssh://git.labs.libre-entreprise.org/gitroot/tiramisu