Mercurial > traipse_dev
diff orpg/tools/orpg_log.py @ 142:2345c12d93a7 beta
Traipse Beta 'OpenRPG' {091123-01}
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 (Beta)
Added Bookmarks
Fix to Remote Admin Commands
Minor fix to text based Server
Fix to Pretty Print, from Core
Fix to Splitter Nodes not being created
Fix to massive amounts of images loading, from Core
Added 'boot' command to remote admin
Added confirmation window for sent nodes
Minor changes to allow for portability to an OpenSUSE linux OS
Miniatures Layer pop up box allows users to turn off Mini labels, from FlexiRPG
Zoom Mouse plugin added
Images added to Plugin UI
Switching to Element Tree
Map efficiency, from FlexiRPG
Added Status Bar to Update Manager
default_manifest.xml renamed to default_upmana.xml
Cleaner clode for saved repositories
New TrueDebug Class in orpg_log (See documentation for usage)
Mercurial's hgweb folder is ported to upmana
Pretty important update that can help remove thousands of dead children from your
gametree.
Children, <forms />, <group_atts />, <horizontal />, <cols />, <rows />, <height
/>, etc... are all tags now. Check your gametree and look for dead children!!
New Gametree Recursion method, mapping, and context sensitivity. !Infinite Loops
return error instead of freezing the software!
New Syntax added for custom PC sheets
Tip of the Day added, from Core and community
Fixed Whiteboard ID to prevent random line or text deleting. Modified ID's to
prevent non updated clients from ruining the fix.
author | sirebral |
---|---|
date | Mon, 23 Nov 2009 12:20:51 -0600 |
parents | dcf4fbe09b70 |
children | dcae32e219f1 |
line wrap: on
line diff
--- a/orpg/tools/orpg_log.py Mon Nov 23 03:36:26 2009 -0600 +++ b/orpg/tools/orpg_log.py Mon Nov 23 12:20:51 2009 -0600 @@ -58,14 +58,13 @@ logger.info("Printed out crash-report.txt in your System folder", True) class Term2Win(object): - # A stdout redirector. Allows the messages from Mercurial to be seen in the Install Window + # A stdout redirector. To be implemented later. def write(self, text): - #logger.stdout(text) + logger.stdout(text) wx.Yield() - sys.__stdout__.write(text) + #sys.__stdout__.write(text) class TrueDebug(object): - ### Alpha ### """A simple debugger. Add debug() to a function and it prints the function name and any objects included. Add an object or a group of objects in ()'s. Adding True to locale prints the file name where the function is. Adding False to log turns the log off. Adding True to parents will print out the parent functions, starting from TrueDebug. @@ -96,6 +95,7 @@ def __init__(self, parent): super(DebugConsole, self).__init__(parent, -1, "Debug Console") icon = wx.Icon(dir_struct["icon"]+'note.ico', wx.BITMAP_TYPE_ICO) + self.parent = parent self.SetIcon(icon) self.console = wx.TextCtrl(self, -1, style=wx.TE_MULTILINE | wx.TE_READONLY) self.bt_clear = wx.Button(self, wx.ID_CLEAR) @@ -123,7 +123,7 @@ self.console.SetValue('') def bug_report(self, evt): - pass + self.parent.OnMB_HelpReportaBug() class orpgLog(object): _log_level = 7 @@ -150,6 +150,7 @@ 'log_string': 'ERROR'}, 1: {'colorizer': {'bold': True, 'red': True}, 'log_string': 'EXCEPTION'}} + if not self.log_name: self.log_name = home_dir + filename + time.strftime('%m-%d-%Y.txt', time.localtime(time.time())) @@ -166,8 +167,10 @@ def general(self, msg, to_console=False): self.log(msg, ORPG_GENERAL, to_console) + def stdout(self, msg, to_console=True): + self.log(msg, ORPG_INFO, 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)