Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-03-07 | systemd-python: split .seek() into .seek_head() and .seek_tail() | Zbigniew Jędrzejewski-Szmek | |
This way python code follows the original interface more closely. Also, .seek(0, journal.SEEK_END) was just to much to type. | |||
2013-03-07 | systemd-python: catch only ValueErrors in conversion code | Zbigniew Jędrzejewski-Szmek | |
First of all, 'try: ... except: ...' (with no exception specified) is always a no-no, since it catches all BaseExceptions, which includes ^C and other stuff which should almost never be caught. Now the conversion is stricter, and only one conversion is attempted, and only a ValueEror is caught. It seems reasonable to catch ValueErrors, since the entries in the journal are not verified, and any erroneous application might log a field which cannot be converted. The consumer of events must only check if a field is an instance of bytes and can otherwise assume that the conversion was performed correctly. Order of arguments in Reader.__init__ has been changed to match order in _Reader.__init__. Conversions have been updated to work under Python 2 and 3. | |||
2013-03-05 | systemd-python: fix error check in _Reader.wait() | Zbigniew Jędrzejewski-Szmek | |
2013-03-01 | systemd-python: add missing check for return of PyDict_SetItem in _reader.c | Lukas Nykryn | |
2013-02-28 | python-systemd: rename Journal to Reader | Zbigniew Jędrzejewski-Szmek | |
It seems inevitable that we'll also grow a writing interface, and then it'll be cumbersome to have a "Journal" for reading, and a "Writer" for writing. | |||
2013-02-28 | systemd-python: return both parts of sd_journal_get_monotonic_usec | Zbigniew Jędrzejewski-Szmek | |
In Python 3, a named tuple is used. In Python 2, a simple tuple is used. In either case, the pair is (timestamp, bootid). | |||
2013-02-28 | python-systemd: check all errors and use automatic cleanup | Zbigniew Jędrzejewski-Szmek | |
__REALTIME_TIMESTAMP and __MONOTONIC_TIMESTAMP return ints. It doesn't make sense to convert to string, just to convert back to a number later on. Also try to follow systemd rules for indentation. | |||
2013-02-28 | systemd-python: hide ChainMap import | Zbigniew Jędrzejewski-Szmek | |
2013-02-28 | systemd-python: document attributes | Zbigniew Jędrzejewski-Szmek | |
In id128 it would be better to add everything automatically, but sphinx cannot do this right now. | |||
2013-02-28 | systemd-python: use PyModule_AddObject in id128 | Zbigniew Jędrzejewski-Szmek | |
2013-02-28 | systemd-python: polish the docstrings | Zbigniew Jędrzejewski-Szmek | |
2013-02-22 | systemd-python: indenation and style tweaks | Zbigniew Jędrzejewski-Szmek | |
2013-02-22 | systemd-python: downgrade _reader.c to C89 | Zbigniew Jędrzejewski-Szmek | |
2013-02-22 | systemd-python: add casts and fix unused variable warnings in _reader | Zbigniew Jędrzejewski-Szmek | |
2013-02-22 | systemd-python: wrap some python differences using macros | Zbigniew Jędrzejewski-Szmek | |
2013-02-22 | systemd-python: introduce error setting helper | Zbigniew Jędrzejewski-Szmek | |
2013-02-22 | systemd-python: Added doc string for Journal | Steven Hiscocks | |
2013-02-22 | systemd-python: Journal convert_unicode exception handling change | Steven Hiscocks | |
Rather than catch all, is now limited to UnicodeDecodeError | |||
2013-02-22 | systemd-python: add Journal method to add MESSAGE_ID match | Steven Hiscocks | |
2013-02-22 | systemd-python: fix memory leak in _reader and minor bugs | Steven Hiscocks | |
iternext now checks for error from get_next, and changed a DECREF to XDECREF rather than NULL check | |||
2013-02-22 | systemd-python: update Journal python docstrings | Steven Hiscocks | |
2013-02-22 | systemd-python: tidy up import names in journal | Steven Hiscocks | |
2013-02-22 | systemd-python: Journal this_boot/machine now accepts ID | Steven Hiscocks | |
2013-02-22 | systemd-python: remove unneeded ifdef for query_unique | Steven Hiscocks | |
2013-02-22 | systemd-python: _reader now takes unix timestamp in seconds | Steven Hiscocks | |
2013-02-22 | systemd-python: Update _reader docstrings | Steven Hiscocks | |
2013-02-22 | systemd-python: _reader add_match takes single string | Steven Hiscocks | |
python code now takes care of multiple matches | |||
2013-02-22 | systemd-python: correct data_threshold error return value | Steven Hiscocks | |
2013-02-22 | systemd-python: updated _reader header to standard license | Steven Hiscocks | |
2013-02-22 | systemd-python: Moved _reader datetime usage to python | Steven Hiscocks | |
2013-02-22 | systemd-python: Tidy up _reader error handling | Steven Hiscocks | |
2013-02-22 | systemd-python: some python3 and bug fixes | Steven Hiscocks | |
2013-02-22 | systemd-python: implement this_boot/this_machine in Python | Steven Hiscocks | |
2013-02-22 | systemd-python: Journal log_level moved to python | Steven Hiscocks | |
2013-02-22 | sphinx: document Journal class too | Zbigniew Jędrzejewski-Szmek | |
2013-02-22 | systemd-python: move default call dicts from C to python | Steven Hiscocks | |
2013-02-22 | systemd-python: MESSAGE_ID as UUID for Journal | Steven Hiscocks | |
2013-02-22 | systemd-python: moved PyRun_String to journal.py code | Steven Hiscocks | |
2013-02-22 | systemd-python: add Journal class for reading journal | Steven Hiscocks | |
2013-02-22 | python: build html docs using sphinx | Zbigniew Jędrzejewski-Szmek | |
Build instructions: make make DESTIDIR=/tmp/... install make DESTIDIR=/tmp/... sphinx-html sphinx-man sphinx-epub ... | |||
2013-02-22 | python: utilize uuid.UUID in logging | Zbigniew Jędrzejewski-Szmek | |
2013-02-22 | python: add systemd.id128 module | Zbigniew Jędrzejewski-Szmek | |
uuid.UUIDs are utilized to hold UUID values. | |||
2012-11-13 | python: add journal backend for the logging framework | Marti Raudsepp | |
Supports Python versions 2.6 through 3.3 (tested on 2.7 and 3.2). See JournalHandler docstring for usage details. [zj: - use send() instead of using sendv() directly - do exception handling like in the logging module - bumped min version to python2.6, since the module does not work with python2.5 anyway ] | |||
2012-11-13 | systemd-python: fix nesting of #ifs and #pragmas | Zbigniew Jędrzejewski-Szmek | |
2012-09-13 | python: make gcc shut up | Lennart Poettering | |
2012-09-13 | python: fix error handling, and allocate argument array on the stack | Lennart Poettering | |
2012-09-13 | python: reindent to follow coding style | Lennart Poettering | |
2012-09-13 | python: change license to LGPL 2.1 | Lennart Poettering | |
The original license has been MIT for this code, but David Strauss (its original author) agreed to relicense it to LGPL 2.1 for inclusion in systemd. | |||
2012-09-13 | python: integrate David Strauss' python-systemd package | Lennart Poettering | |