summaryrefslogtreecommitdiffstats
path: root/src/Gui/CCDump.py
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-19 13:53:25 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-19 13:53:25 +0100
commit6edf29e32c72e2d860019b2b987012fe52ac49a0 (patch)
treeb8a62a483cb05a05901e2cfb5c371ba7e144360f /src/Gui/CCDump.py
parent7c3acc81d9a4f83e8252779fa96703e1a72dd3db (diff)
downloadabrt-6edf29e32c72e2d860019b2b987012fe52ac49a0.tar.gz
abrt-6edf29e32c72e2d860019b2b987012fe52ac49a0.tar.xz
abrt-6edf29e32c72e2d860019b2b987012fe52ac49a0.zip
preparatory patch with trivial cleanups
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Gui/CCDump.py')
-rw-r--r--src/Gui/CCDump.py34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/Gui/CCDump.py b/src/Gui/CCDump.py
index 212d4410..96d036c4 100644
--- a/src/Gui/CCDump.py
+++ b/src/Gui/CCDump.py
@@ -1,9 +1,11 @@
# -*- coding: utf-8 -*-
from datetime import datetime
-TYPE = 0
-EDITABLE = 1
-CONTENT = 2
+from abrt_utils import _, init_logging, log, log1, log2
+
+CD_TYPE = 0
+CD_EDITABLE = 1
+CD_CONTENT = 2
class Dump():
"""Class for mapping the debug dump to python object"""
@@ -19,40 +21,40 @@ class Dump():
self.Reported = None
def getUUID(self):
- return self.UUID[CONTENT]
+ return self.UUID[CD_CONTENT]
def getUID(self):
- return self.UID[CONTENT]
+ return self.UID[CD_CONTENT]
def getCount(self):
- return self.Count[CONTENT]
+ return self.Count[CD_CONTENT]
def getExecutable(self):
- return self.Executable[CONTENT]
+ return self.Executable[CD_CONTENT]
def getPackage(self):
- return self.Package[CONTENT]
+ return self.Package[CD_CONTENT]
def isReported(self):
- return self.Reported[CONTENT] == "1"
+ return self.Reported[CD_CONTENT] == "1"
def getMessage(self):
if not self.Message:
- return []
- #return self.Message[CONTENT].split('\n')
- return self.Message[CONTENT]
+ return "" #[]
+ #return self.Message[CD_CONTENT].split('\n')
+ return self.Message[CD_CONTENT]
def getTime(self,format):
#print format
if format:
try:
- return datetime.fromtimestamp(int(self.Time[CONTENT])).strftime(format)
+ return datetime.fromtimestamp(int(self.Time[CD_CONTENT])).strftime(format)
except Exception, e:
print e
- return int(self.Time[CONTENT])
+ return int(self.Time[CD_CONTENT])
def getPackageName(self):
- return self.Package[CONTENT][:self.Package[CONTENT].find("-")]
+ return self.Package[CD_CONTENT][:self.Package[CD_CONTENT].find("-")]
def getDescription(self):
- return self.Description[CONTENT]
+ return self.Description[CD_CONTENT]