Changeset 4276
- Timestamp:
- 03/05/09 01:37:45 (4 years ago)
- Files:
-
- 1 modified
-
trunk/bin/umit (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/umit
r4240 r4276 114 114 crash_text = cgitb.text((etype, emsg, etb)) 115 115 crash_text_dialog = "\n%s\n%s\n" % (versions, crash_text) 116 crash_text = "{{{\n%s\n%s\n}}}" % (versions, crash_text)117 116 crash_text = "{{{\n%s\n%s\n}}}" % (versions, crash_text) 117 118 118 #Dialog info 119 119 extrainfo_dialog = "%-17s %s\n%-17s %s\n%-17s %s\n%-17s %s\n" % ( 120 "sys.platform", sys.platform, "os.name", os.name, 121 "Gtk version", '.'.join(map(str, gtk.gtk_version)), 120 "sys.platform", sys.platform, "os.name", os.name, 121 "Gtk version", '.'.join(map(str, gtk.gtk_version)), 122 122 "Umit version", VERSION) 123 crashmsg_dialog = "Crash Report\n%s\n%s\nDescription\n%s\n%s" % \ 124 ('=' * 10, extrainfo_dialog, '-' * 20,\ 125 crash_text_dialog) 126 127 extrainfo = "%-17s %s\n[[BR]]%-17s %s\n[[BR]]%-17s %s\n[[BR]]%-17s %s[[BR]]\n" % ( 128 "sys.platform", sys.platform, "os.name", os.name, 129 "Gtk version", '.'.join(map(str, gtk.gtk_version)), 130 "Umit version", VERSION) 131 crashmsg = "Crash Report\n[[BR]]%s[[BR]]\n[[BR]]%s\nDescription\n%s\n%s" % ('=' * 10, 132 extrainfo, '-' * 20, crash_text) 123 crashmsg_dialog = "Crash Report\n%s\n%s\nDescription\n%s\n%s" % ( 124 '=' * 10, extrainfo_dialog, '-' * 20, crash_text_dialog) 125 126 extrainfo = ( 127 "%-17s %s\n[[BR]]%-17s %s\n[[BR]]%-17s %s\n" 128 "[[BR]]%-17s %s[[BR]]\n" % ( 129 "sys.platform", sys.platform, "os.name", os.name, 130 "Gtk version", '.'.join(map(str, gtk.gtk_version)), 131 "Umit version", VERSION)) 132 crashmsg = ( 133 "Crash Report\n[[BR]]%s[[BR]]\n[[BR]]%s\n" 134 "Description\n%s\n%s" % ( 135 '=' * 10, extrainfo, '-' * 20, crash_text)) 133 136 134 137 try: 135 138 try: 136 cwin = CrashReport("Umit Crash - '%s'" % emsg, crashmsg,137 description_dialog=crashmsg_dialog)139 cwin = CrashReport("Umit Crash - '%s'" % emsg, 140 crashmsg, description_dialog=crashmsg_dialog) 138 141 cwin.show_all() 139 while True: 140 # keeping running while bug report is not sent successfully,141 # or until the user closes the window.142 while True: 143 # keeping running while bug report is not sent 144 # successfully, or until the user closes the window. 142 145 result = cwin.run() 143 146 if result in (gtk.RESPONSE_CANCEL, … … 153 156 message_format=_("Bug not reported"), 154 157 secondary_text=_("A critical error occourried during " 155 "Umit execution, \nand it was not properly reported " 156 "to our bug tracker. The crash description was saved to:"157 " %s, so you can still report it on our bug "158 "Umit execution, \nand it was not properly reported " 159 "to our bug tracker. The crash description was saved " 160 "to: %s, so you can still report it on our bug " 158 161 "tracker.") % tempname) 159 162 os.close(tempfd) … … 179 182 sys.stderr = _stderr 180 183 181 184 182 185 sys.excepthook = UmitExceptionHook() 183 186
