diff options
author | Nikola Pajkovsky <npajkovs@redhat.com> | 2011-06-13 13:33:30 +0200 |
---|---|---|
committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2011-06-13 13:33:30 +0200 |
commit | d09af1b80697c4ed02e420ca89f2675b14b0f47b (patch) | |
tree | 2ea2bb66de7ba8c855547f8e14774da44b22d184 /libreport/src/report-python/test_setroubleshoot_example2 | |
parent | ae3d2f1e79fb0582cb216ab6d2d7952323a547cd (diff) | |
download | abrt-d09af1b80697c4ed02e420ca89f2675b14b0f47b.tar.gz abrt-d09af1b80697c4ed02e420ca89f2675b14b0f47b.tar.xz abrt-d09af1b80697c4ed02e420ca89f2675b14b0f47b.zip |
move libreport into its own git
ssh://git.fedorahosted.org/git/libreport.git
Diffstat (limited to 'libreport/src/report-python/test_setroubleshoot_example2')
-rwxr-xr-x | libreport/src/report-python/test_setroubleshoot_example2 | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libreport/src/report-python/test_setroubleshoot_example2 b/libreport/src/report-python/test_setroubleshoot_example2 deleted file mode 100755 index b712cda7..00000000 --- a/libreport/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 |