src/GampsLogger/_ErrorReportAssistant.py: fix error message in Windows

svn: r6970
This commit is contained in:
Brian Matherly 2006-06-28 02:52:38 +00:00
parent 0d445ff813
commit 4234d0133f
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2006-06-27 Brian Matherly <brian@gramps-project.org>
* src/GampsLogger/_ErrorReportAssistant.py: fix error message in Windows
2006-06-26 Don Allingham <don@gramps-project.org> 2006-06-26 Don Allingham <don@gramps-project.org>
* src/ReportBase/_ReportDialog.py (report): catch IOError * src/ReportBase/_ReportDialog.py (report): catch IOError
* src/Filters/Rules/Person/_HasDeath.py: use references instead of * src/Filters/Rules/Person/_HasDeath.py: use references instead of

View File

@ -81,6 +81,13 @@ class ErrorReportAssistant:
self._final_report_text_buffer.get_end_iter())) self._final_report_text_buffer.get_end_iter()))
def _get_sys_information(self): def _get_sys_information(self):
if hasattr(os, "uname"):
operatingsystem = os.uname()[0]
distribution = os.uname()[2]
else:
operatingsystem = sys.platform
distribution = " "
return "Python version: %s \n"\ return "Python version: %s \n"\
"Gramps version: %s \n"\ "Gramps version: %s \n"\
"LANG: %s\n"\ "LANG: %s\n"\
@ -89,8 +96,8 @@ class ErrorReportAssistant:
% (str(sys.version).replace('\n',''), % (str(sys.version).replace('\n',''),
str(const.version), str(const.version),
os.environ.get('LANG',''), os.environ.get('LANG',''),
os.uname()[0], operatingsystem,
os.uname()[2]) distribution)
def _reset_error_details_text_buffer(self,obj=None): def _reset_error_details_text_buffer(self,obj=None):
self._error_details_text_buffer.set_text( self._error_details_text_buffer.set_text(