diff orpg/tools/orpg_log.py @ 94:118fbe111922 beta

Traipse Beta 'OpenRPG' {090919-02} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user. Update Summary: 00: Adds menu changes to draw attention to important updates, errors, or other events. (image info coming soon) Traipse URL is not included in the repos tab and is set as default. Fixes Copy for Windows and Linux (finally!!) users. Fixes incomplete update to Grid and List nodes. Fixes incomplete update to Chat Commands. Fixes problems with Remote Image Upload. Fixes Drop and Drag of Minis to Map. CherryPy can now use any image in the webfiles/ folder and sub-folders. CherryPy can now Drop and Drag Minis to the Map. Minor changes to Update Manager's GUI. Expert recommendation warning added to Revision Update. Step down compatibility with open_rpg & component added to orpgCore. Using majority of 'Grumpy' network folder to correct server lag. 01: Where is the update? 02: Fixes CherryPit misspelling. Makes Traipse Suite 'Attention' item portable, and executes it on 'Critical' debug notices. Adds incomplete Shift + Enter to Text Entry, currently creates a 'Critical' warning.
author sirebral
date Sat, 19 Sep 2009 12:17:06 -0500
parents 68c7bd272f27
children 496dbf12a6cb dcf4fbe09b70
line wrap: on
line diff
--- a/orpg/tools/orpg_log.py	Sat Sep 19 06:58:26 2009 -0500
+++ b/orpg/tools/orpg_log.py	Sat Sep 19 12:17:06 2009 -0500
@@ -54,16 +54,10 @@
     crash_report.close()
     logger.exception("Crash Report Created!!")
     logger.info("Printed out crash-report.txt in your System folder", True)
-    #component.get('frame').traipseSuite.SetTitle('&Traipse!!')
-    component.get('frame').mainmenu.Replace(8, component.get('frame').traipseSuite, '&Traipse Suite!')
-    component.get('frame').debugConsole.SetBitmap(wx.Bitmap(dir_struct["icon"] + 'spotlight.png'))
-    component.get('frame').traipseSuite.RemoveItem(component.get('frame').debugConsole)
-    component.get('frame').traipseSuite.AppendItem(component.get('frame').debugConsole)
-    #wx.MessageBox('Crash Report Created!', 'System Failure')
 
 class DebugConsole(wx.Frame):
     def __init__(self, parent):
-        super(DebugConsole, self).__init__(parent, -1, "Debug Window")
+        super(DebugConsole, self).__init__(parent, -1, "Debug Console")
         icon = None
         icon = wx.Icon(dir_struct["icon"]+'note.ico', wx.BITMAP_TYPE_ICO)
         self.SetIcon( icon )
@@ -122,6 +116,8 @@
         self.log(msg, ORPG_GENERAL, to_console)
 
     def exception(self, msg, to_console=True):
+        ### Beta ### Every 'Critical' exception will draw attention to the Debug Console
+        component.get('frame').TraipseSuiteWarn('debug')
         self.log(msg, ORPG_CRITICAL, to_console)
 
     def log(self, msg, log_type, to_console=False):