ZyX
33d32498b9
Do not use create_renderer from a separate thread
...
Also moves functions from tests.test_config_reload to tests.lib.config_mock
Using create_renderer for vim results in vim access from a separate thread.
2013-04-03 06:33:56 +04:00
ZyX
c2ceac093f
Add replace_item with function, remove os import
2013-03-31 00:02:53 +04:00
ZyX
3ebc16a48c
Replace pl.environ/getcwd/home with segment_info
2013-03-30 21:55:00 +04:00
ZyX
29f29213a9
Remove ThreadedSegment.write_lock
...
Assuming getattr(self, 'update_value') and setattr(self, 'update_value', value)
are atomic. True with cpython unless somebody defined __getattribute__ or
__setattr__.
2013-03-30 14:07:24 +04:00
ZyX
6c495374a0
Fix exec call for non-python-2.7
2013-03-24 20:03:09 +04:00
ZyX
1351207462
Some fixes for flake8
2013-03-24 19:59:56 +04:00
ZyX
ed435f8063
Add required pl argument to segments
...
Fixes #340
Ref #330
2013-03-24 19:44:01 +04:00
ZyX
157b849d33
Make weather gradient configurable, add system_load gradient
...
Also make gradients floating-point and fix #332 by removing “normalized” from
system_load segment documentation.
2013-03-24 00:55:54 +04:00
ZyX
fb2e9b6cdb
Test all other segments
...
Still uncovered: email_imap_alert and now_playing
2013-03-17 21:23:27 +04:00
Kim Silkebækken
111eaa27e8
Combine vim modelines and Python encoding declarations
...
Ref #314
2013-03-11 10:40:09 +01:00
Kim Silkebækken
6748701fcb
Add vim modelines to all Python files
...
Added with `sed -i '2i# vim:fenc=utf-8:noet' `find -name '*.py'`` and
fixed in a couple of files without the UTF-8 encoding on top.
Ref #314
2013-03-11 08:11:25 +01:00
ZyX
c334be416d
Add tests.lib module with `replace_*()` with statement functions
...
Note: there is new problem: now multiprocessing() globals got assigned None
values. It is likely somehow related to extended `sys.modules` utilization
2013-03-03 21:03:26 +01:00