diff options
author | Nikola Pajkovsky <npajkovs@redhat.com> | 2011-06-09 10:00:51 +0200 |
---|---|---|
committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2011-06-09 10:00:51 +0200 |
commit | fc1a5c5f0021570c33c8e52e755eb1f20b10f0eb (patch) | |
tree | f190c58f09e446fa0bf7cb40f426a1731b65b5d3 /src/report-python/test_setroubleshoot_example2 | |
parent | d7f6a267c6fd85965dc5fd7e58372b74510dcf33 (diff) | |
download | abrt-fc1a5c5f0021570c33c8e52e755eb1f20b10f0eb.tar.gz abrt-fc1a5c5f0021570c33c8e52e755eb1f20b10f0eb.tar.xz abrt-fc1a5c5f0021570c33c8e52e755eb1f20b10f0eb.zip |
[abrt] whole code is moved to libreport
Diffstat (limited to 'src/report-python/test_setroubleshoot_example2')
-rwxr-xr-x | src/report-python/test_setroubleshoot_example2 | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/report-python/test_setroubleshoot_example2 b/src/report-python/test_setroubleshoot_example2 deleted file mode 100755 index b712cda7..00000000 --- a/src/report-python/test_setroubleshoot_example2 +++ /dev/null @@ -1,27 +0,0 @@ -#!/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") - -# Won't send log anywhere: -#rc = report.report(signature, report.io.GTKIO.GTKIO(accounts)) - -# report.report() + logging: -def logging_callback(line): - print "LOG:", line - return -state = report.run_event_state() -state.logging_callback = logging_callback -rc = state.run_event_on_problem_data(signature, "report") - -print "rc:", rc |