Emmanuel Garette
a130cff4bf
frozen with force_default_on_freeze can change owner
2014-10-26 09:44:06 +01:00
Emmanuel Garette
ed3373cff0
bad characters in DomainnameOption could be in warning level
2014-10-26 09:38:17 +01:00
Emmanuel Garette
8a59e27396
f option is frozen with force_default_on_freeze property, owner must be 'default' check property when tried to change owner
2014-10-26 08:51:45 +01:00
Emmanuel Garette
8aa4260404
test force_default_on_freeze with multi and correction in Multi()
2013-08-28 22:50:35 +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
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
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
gwen
9259a6e3f7
values are in value objects now
2013-02-07 16:20:21 +01:00
gwen
eb7e393864
the value owner is a string now
2012-11-15 10:55:14 +01:00
gwen
09dba4b959
suppression of the override
2012-11-12 12:06:58 +01:00
gwen
11b2edd07d
Option.force_default() -> opt value returns the default value
2012-08-13 16:06:02 +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