Commit Graph

25 Commits

Author SHA1 Message Date
gwen 3c36e05d82 adds test for an API 2014-01-06 14:40:29 +01:00
gwen fbf05ba5e4 python 3 compatibility
remove __eq__ and __ne__ in Option
2013-08-28 21:13:42 +02:00
Emmanuel Garette 9b134c3aa7 requirement are now a dictionary (not anymore a tuple) 2013-06-29 18:41:14 +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 2c5bbb7bc0 Requires need option, not path
Valid requires
2013-04-26 14:40:44 +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 d4ef47759e 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')
2013-04-20 17:30:05 +02:00
Emmanuel Garette d5e1cb6576 pass force_properties to value's _setitem and remove config's setoption 2013-04-17 23:19:53 +02:00
Emmanuel Garette 3170237c8e properties validation not in setting and now launch when modify multi 2013-04-17 21:33:34 +02:00
Emmanuel Garette 9357b342c1 review exception 2013-04-14 12:01:32 +02:00
Emmanuel Garette 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 6a3b7102b5 adds a freeze_everything possibility 2013-02-06 14:59:24 +01:00
gwen 86f9096937 settings are in a separate object 2012-11-19 10:45:03 +01:00
gwen b2e97573bd tests on frozen and None value 2012-09-19 09:31:02 +02:00
gwen c70fc04f3a has_callback options cannot be overrided 2012-09-18 15:25:35 +02:00
gwen e2bcac1c01 mandatory or type error raised 2012-09-12 10:38:41 +02:00
gwen bf0dcbe2c8 replace special_owner with hascallback_and_freeze 2012-08-14 10:55:08 +02:00
gwen 753b0a55c7 opt.hidden and opt.disabled is replaced by opt.properties 2012-08-13 12:49:58 +02:00
gwen 5ee7247e52 suppression of the notion of normal and expert mode 2012-08-13 10:51:52 +02: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 8b16814ab4 first revision 2012-05-13 20:48:51 +02:00