Commit graph

168 commits

Author SHA1 Message Date
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
a067d2cdd9 add some tests 2014-02-04 21:14:30 +01:00
Emmanuel Garette
8d10ad4002 add tests 2014-02-02 22:47:46 +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
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
172a33f842 mandatory_warnings never raises ConfigError 2013-12-16 14:20:35 +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
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
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
Emmanuel Garette
acd27fb56c huge use of weakrefs to remove memoryleaks due to circular references 2013-08-27 11:39:32 +02:00
Emmanuel Garette
36def6533f store session in dictionary storage 2013-08-27 09:46:52 +02:00
gwen
551b9fb1e3 getting stated documentation 2013-08-26 17:14:14 +02:00
Emmanuel Garette
6b9d5aed59 add enumerate and delete method for manage storage 2013-08-25 21:57:11 +02:00
Emmanuel Garette
dcb12dac02 can change storage with set_storage, storage's name is store in storage object and storage is create with get_storage 2013-08-25 20:49:24 +02:00
Emmanuel Garette
e4c129efc5 getowner need now an option 2013-08-24 22:32:54 +02:00
Emmanuel Garette
4c27cb586d in __setattr__, name should never be object's variable name
remove context in type_ find's option
find_first_context return AttributError if no results
2013-08-24 21:26:10 +02:00
Emmanuel Garette
6708fe4522 is not config in other, __neq__ should return True 2013-08-24 18:04:19 +02:00
Emmanuel Garette
a7d784ba3e is not config in other, __neq__ should return True 2013-08-24 18:04:11 +02:00
Emmanuel Garette
196d270cc9 _calc_requirement is a set, not a tuple 2013-08-24 16:34:08 +02:00
gwen
0db7ef72a6 automatic API documentation 2013-08-23 11:16:26 +02:00
Emmanuel Garette
b6bb685ca5 key is now always path and change opt by path dictionary storage 2013-08-21 22:21:50 +02:00
Emmanuel Garette
707a215a2c pep8 2013-08-21 18:34:32 +02:00
Emmanuel Garette
0d5a447eb3 add persistent option for db 2013-08-20 22:45:11 +02:00
Emmanuel Garette
ace7f6f828 merge from master 2013-08-20 16:33:32 +02:00
gwen
564fecc261 pep 8 lines too long 2013-08-20 12:08:02 +02:00
Emmanuel Garette
e826f3d1c6 we can personalise storage easily 2013-08-20 09:47:12 +02:00
Emmanuel Garette
df7d6759cd add sqlite plugin 2013-08-19 11:01:21 +02:00
Emmanuel Garette
f6f709f83d split cache/value/setting in plugin 2013-08-14 23:06:31 +02:00
Emmanuel Garette
e9ffd96a28 update translation 2013-07-18 21:25:07 +02:00
Emmanuel Garette
e6c3104681 translation 2013-07-17 23:05:43 +02:00
Emmanuel Garette
bc054d75af translation 2013-07-17 23:02:50 +02:00
Emmanuel Garette
15ac8c2872 update french translation 2013-07-17 22:30:35 +02:00
Emmanuel Garette
c06659012b Config: __str__ raise if no str/unicode value 2013-07-03 21:56:31 +02:00
Emmanuel Garette
4b5d9b4229 __str__ method could return unicode object, force to decode in str 2013-07-01 16:49:10 +02:00
Emmanuel Garette
75f7e7ce5d callback with option in params which is in an hidden optiondescription 2013-06-26 16:26:42 +02:00
gwen
c6c422f472 docstrings and api 2013-05-23 17:51:50 +02:00
gwen
879a415e75 add docstrings 2013-05-23 14:55:52 +02:00