comparison orpg/tools/orpg_log.py @ 124:8827271fbe1b alpha

Traipse Alpha 'OpenRPG' {091001-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 (Cleaning up for 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 Happy Halloween!
author sirebral
date Sun, 01 Nov 2009 11:36:14 -0600
parents 174658f839c0
children 0f720618a8bd
comparison
equal deleted inserted replaced
123:174658f839c0 124:8827271fbe1b
60 class Term2Win(object): 60 class Term2Win(object):
61 # A stdout redirector. Allows the messages from Mercurial to be seen in the Install Window 61 # A stdout redirector. Allows the messages from Mercurial to be seen in the Install Window
62 def write(self, text): 62 def write(self, text):
63 #logger.stdout(text) 63 #logger.stdout(text)
64 wx.Yield() 64 wx.Yield()
65 #sys.__stdout__.write(text) 65 sys.__stdout__.write(text)
66 66
67 class TrueDebug(object): 67 class TrueDebug(object):
68 ### Alpha ### 68 ### Alpha ###
69 """A simple debugger. Add debug() to a function and it prints the function name and any objects included. 69 """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.
70 Adding True to locale prints the file name where the function is. Adding False to log turns the log off. 70 Adding True to locale prints the file name where the function is. Adding False to log turns the log off.
71 Adding True to parents will print out the parent functions, starting from TrueDebug.
71 This feature can be modified to trace deeper and find the bugs faster, ending the puzzle box.""" 72 This feature can be modified to trace deeper and find the bugs faster, ending the puzzle box."""
72 def __init__(self, objects=None, locale=False, log=True, parents=False): 73 def __init__(self, objects=None, locale=False, log=True, parents=False):
73 if log == False: return 74 if log == False: return
74 current = inspect.currentframe() 75 current = inspect.currentframe()
75 if parents: self.get_parents(current) 76 if parents: self.get_parents(current)