[python-meh] Callbacks support

Vratislav Podzimek vpodzime at redhat.com
Fri Jan 11 20:07:15 UTC 2013


It was requested by some people (Radek included) that we could append
some more info to our bugreports. But python-meh only supports
appending/attaching existing files. The following two patches add
support for callbacks that could provide some additional info (e.g. by
calling 'lsblk', 'nmcli' etc. and capturing output).

PATCH 1/2 is the main one.
PATCH 2/2 could be squashed, but I'm not sure if it gets approved so I'm
proposing it separately.

Vratislav Podzimek (2):
  Add support for callbacks providing additional data
  Allow callbacks marked as attachment only

 meh/__init__.py    | 37 +++++++++++++++++++++++++++++++++++++
 meh/dump.py        | 14 ++++++++++++++
 meh/handler.py     |  7 +++++++
 tests/callbacks.py | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 104 insertions(+)
 create mode 100644 tests/callbacks.py

-- 
1.7.11.7



More information about the anaconda-patches mailing list