| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | systemd-python: add _Reader.get_catalog() | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -0/+24 | |
| | | | | | | | | | This one wraps sd_journaal_get_catalog. | |||||
| | * | systemd-python: add _Reader.closed attribute | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -2/+14 | |
| | | | | | | | | | This should make the file interface of _Reader complete. | |||||
| | * | systemd-python: allow Reader to be used as a context manager | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -0/+32 | |
| | | | ||||||
| | * | systemd-python: add systemd.daemon wrapping sd-daemon | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 6 | -17/+412 | |
| | | | | | | | | | | | | | | | | | | | Please see the documentation (e.g. pydoc3 systemd.daemon) for full description. As usual, systemd._daemon wraps the raw interface, while systemd.daemon provides the more pythonic API. sd_listen_fds, sd_booted, sd_is_fifo, sd_is_socket, sd_is_socket_unix, sd_is_socket_inet, sd_is_mq, and SD_LISTEN_FDS_START are currently wrapped. | |||||
| | * | man,html: say 'systemd 198' in the header | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | This should help readers of the man or HTML pages know if the documentation is out of date. An alternative to use a date generated from 'git log' was considered, but since we try to keep user visible documentation up to date, showing the project version should be enough. | |||||
| | * | python/docs: use the same links on top as in man pages | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 2 | -0/+18 | |
| | | | | | | | | | | | I forgot to commit the layout file, because it was gitignored. Fixed now. | |||||
| | * | html: make python docs look more like the rest | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 2 | -2/+198 | |
| | | | | | | | | | | | The result is ugly enough, I hope, to motivate someone with design skills to fix it. | |||||
| | * | systemd-python: provide version info to sphinx | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -9/+0 | |
| | | | ||||||
| | * | systemd-python: fix segfault on double close | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -0/+1 | |
| | | | ||||||
| | * | systemd-python: fix typos | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -2/+2 | |
| | | | ||||||
| | * | systemd-python: update documentation for new systemd-journal group | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -1/+1 | |
| | | | ||||||
| | * | systemd-python: refuse path and flags together in __init__ | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 2 | -10/+18 | |
| | | | | | | | | | | | | | | | | | | | It's better to explictly check, instead of just documenting it. The return value from init is changed from 1 to -1 on error. Python seems to ignore 1 every second time. Looks like a bug in Python, but the return value doesn't seem to be documented anywhere, and -1 works as expected... so let's just use that. | |||||
| | * | systemd-python: export sd_j_get_fd, sd_j_reliable_fd, sd_j_close | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 2 | -0/+60 | |
| | | | | | | | | | | | | | | | | | | | sd_journal_get_fd(j) is called j.fileno(), for compatiblity with Python conventions for file-like objects. More importantly, those new .seek_head() and .seek_tail() do not call .get_next(). This is better, if one wants to skip before retrieving an entry. | |||||
| | * | systemd-python: split .seek() into .seek_head() and .seek_tail() | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 3 | -58/+27 | |
| | | | | | | | | | | | This way python code follows the original interface more closely. Also, .seek(0, journal.SEEK_END) was just to much to type. | |||||
| | * | systemd-python: catch only ValueErrors in conversion code | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -38/+60 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
| | * | systemd-python: fix error check in _Reader.wait() | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -2/+3 | |
| | | | ||||||
| | * | systemd-python: add missing check for return of PyDict_SetItem in _reader.c | Lukas Nykryn | 2015-07-05 | 1 | -1/+1 | |
| | | | ||||||
| | * | python-systemd: rename Journal to Reader | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 3 | -77/+77 | |
| | | | | | | | | | | | | | 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. | |||||
| | * | systemd-python: return both parts of sd_journal_get_monotonic_usec | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 3 | -13/+71 | |
| | | | | | | | | | | | In Python 3, a named tuple is used. In Python 2, a simple tuple is used. In either case, the pair is (timestamp, bootid). | |||||
| | * | python-systemd: check all errors and use automatic cleanup | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 5 | -126/+253 | |
| | | | | | | | | | | | | | | | | | __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. | |||||
| | * | systemd-python: hide ChainMap import | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -2/+2 | |
| | | | ||||||
| | * | systemd-python: document attributes | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 2 | -0/+54 | |
| | | | | | | | | | | | In id128 it would be better to add everything automatically, but sphinx cannot do this right now. | |||||
| | * | systemd-python: use PyModule_AddObject in id128 | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -2/+2 | |
| | | | ||||||
| | * | systemd-python: polish the docstrings | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 3 | -57/+76 | |
| | | | ||||||
| | * | systemd-python: indenation and style tweaks | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -97/+80 | |
| | | | ||||||
| | * | systemd-python: downgrade _reader.c to C89 | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -81/+86 | |
| | | | ||||||
| | * | systemd-python: add casts and fix unused variable warnings in _reader | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -24/+34 | |
| | | | ||||||
| | * | systemd-python: wrap some python differences using macros | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -48/+26 | |
| | | | ||||||
| | * | systemd-python: introduce error setting helper | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -95/+42 | |
| | | | ||||||
| | * | systemd-python: Added doc string for Journal | Steven Hiscocks | 2015-07-05 | 1 | -0/+18 | |
| | | | ||||||
| | * | systemd-python: Journal convert_unicode exception handling change | Steven Hiscocks | 2015-07-05 | 1 | -1/+1 | |
| | | | | | | | | | Rather than catch all, is now limited to UnicodeDecodeError | |||||
| | * | systemd-python: add Journal method to add MESSAGE_ID match | Steven Hiscocks | 2015-07-05 | 1 | -0/+9 | |
| | | | ||||||
| | * | systemd-python: fix memory leak in _reader and minor bugs | Steven Hiscocks | 2015-07-05 | 1 | -2/+3 | |
| | | | | | | | | | | | iternext now checks for error from get_next, and changed a DECREF to XDECREF rather than NULL check | |||||
| | * | systemd-python: update Journal python docstrings | Steven Hiscocks | 2015-07-05 | 2 | -19/+60 | |
| | | | ||||||
| | * | systemd-python: tidy up import names in journal | Steven Hiscocks | 2015-07-05 | 2 | -14/+18 | |
| | | | ||||||
| | * | systemd-python: Journal this_boot/machine now accepts ID | Steven Hiscocks | 2015-07-05 | 1 | -6/+21 | |
| | | | ||||||
| | * | systemd-python: remove unneeded ifdef for query_unique | Steven Hiscocks | 2015-07-05 | 1 | -4/+0 | |
| | | | ||||||
| | * | systemd-python: _reader now takes unix timestamp in seconds | Steven Hiscocks | 2015-07-05 | 2 | -4/+7 | |
| | | | ||||||
| | * | systemd-python: Update _reader docstrings | Steven Hiscocks | 2015-07-05 | 1 | -8/+5 | |
| | | | ||||||
| | * | systemd-python: _reader add_match takes single string | Steven Hiscocks | 2015-07-05 | 2 | -100/+15 | |
| | | | | | | | | | python code now takes care of multiple matches | |||||
| | * | systemd-python: correct data_threshold error return value | Steven Hiscocks | 2015-07-05 | 1 | -1/+1 | |
| | | | ||||||
| | * | systemd-python: updated _reader header to standard license | Steven Hiscocks | 2015-07-05 | 1 | -18/+20 | |
| | | | ||||||
| | * | systemd-python: Moved _reader datetime usage to python | Steven Hiscocks | 2015-07-05 | 2 | -44/+18 | |
| | | | ||||||
| | * | systemd-python: Tidy up _reader error handling | Steven Hiscocks | 2015-07-05 | 2 | -73/+75 | |
| | | | ||||||
| | * | systemd-python: some python3 and bug fixes | Steven Hiscocks | 2015-07-05 | 2 | -9/+21 | |
| | | | ||||||
| | * | systemd-python: implement this_boot/this_machine in Python | Steven Hiscocks | 2015-07-05 | 2 | -68/+9 | |
| | | | ||||||
| | * | systemd-python: Journal log_level moved to python | Steven Hiscocks | 2015-07-05 | 2 | -32/+8 | |
| | | | ||||||
| | * | sphinx: document Journal class too | Zbigniew Jędrzejewski-Szmek | 2015-07-05 | 1 | -0/+13 | |
| | | | ||||||
| | * | systemd-python: move default call dicts from C to python | Steven Hiscocks | 2015-07-05 | 2 | -220/+97 | |
| | | | ||||||
| | * | systemd-python: MESSAGE_ID as UUID for Journal | Steven Hiscocks | 2015-07-05 | 1 | -0/+2 | |
| | | | ||||||
