diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-21 19:25:05 +0100 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-12-21 19:25:05 +0100 |
| commit | c96bab437f21aea116bfe5608bb43c9cd26fb904 (patch) | |
| tree | 316c8a131bb280b304182686f2034c43d029dcbc /src/report-python/test_setroubleshoot_example | |
| parent | 628fb1fbae2a9e3e8fc3add070bceb5557973029 (diff) | |
| download | abrt-c96bab437f21aea116bfe5608bb43c9cd26fb904.tar.gz abrt-c96bab437f21aea116bfe5608bb43c9cd26fb904.tar.xz abrt-c96bab437f21aea116bfe5608bb43c9cd26fb904.zip | |
src/report-python: add report package compatibility
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/report-python/test_setroubleshoot_example')
| -rwxr-xr-x | src/report-python/test_setroubleshoot_example | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/report-python/test_setroubleshoot_example b/src/report-python/test_setroubleshoot_example new file mode 100755 index 00000000..74428f16 --- /dev/null +++ b/src/report-python/test_setroubleshoot_example @@ -0,0 +1,18 @@ +#!/usr/bin/python + +import report +import report.io +import report.io.GTKIO +import report.accountmanager + +accounts = report.accountmanager.AccountManager() + +signature = report.createAlertSignature("selinux-policy", + "setroubleshoot", + "self.siginfo.get_hash()", + "self.summary", + "content") + +rc = report.report(signature, report.io.GTKIO.GTKIO(accounts)) + +print "rc:", rc |
