Commit Graph

26 Commits

Author SHA1 Message Date
Emmanuel Garette 1d8c248d1b Multi: don't touch slave's value if it's default one's + don't check slave properties (if, for example, disabled for example) 2013-05-21 11:09:09 +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 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
Emmanuel Garette 682d9fe207 add option name's validation and rename Option method with objimpl_ 2013-04-20 21:58:52 +02:00
Emmanuel Garette d7b5d9dc16 add SlaveError for slave's length 2013-04-19 20:23:34 +02:00
Emmanuel Garette e08bd93cd8 all multi gestion is now in Multi 2013-04-18 23:06:14 +02:00
Emmanuel Garette 324c3d2cf6 * 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
2013-04-18 20:26:40 +02:00
Emmanuel Garette 9357b342c1 review exception 2013-04-14 12:01:32 +02:00
Emmanuel Garette d100d66548 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')
2013-04-05 12:20:33 +02:00
Emmanuel Garette e9902d8ce2 rewrite make_dict 2013-04-04 11:24:00 +02:00
Emmanuel Garette e6f00948f3 optimisations and all is properties 2013-04-03 12:20:26 +02:00
gwen 7b4f3b5d36 option's name shall not have an api's method name 2013-02-25 11:33:20 +01:00
gwen e6d5d349c8 refactoring values 2013-02-21 17:07:00 +01:00
gwen 29914051e0 master groups that have multis 2013-02-06 17:19:56 +01:00
gwen a404c4c992 masters shall have the same names as groups 2013-02-06 16:21:30 +01:00
gwen ca2f4487dd add owner 2012-12-10 14:38:25 +01:00
gwen cd50cf7551 owners are *real* objects now 2012-12-10 14:10:05 +01:00
gwen e118f07539 groupe_types are real types now 2012-12-06 18:14:57 +01:00
gwen 9736298ba2 tests on groups/masters allowed groups 2012-12-06 15:19:43 +01:00
gwen 7784a82cde tests on group types 2012-12-05 09:41:53 +01:00
gwen bfb5045753 test mandatory 2012-11-06 15:19:36 +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 4ec7dff6c4 value None in multi values 2012-07-11 12:30:45 +02:00
gwen 8b16814ab4 first revision 2012-05-13 20:48:51 +02:00