commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue common/src/GDebug.py forms/src/GFInstance....


From: James Thompson
Subject: gnue common/src/GDebug.py forms/src/GFInstance....
Date: Fri, 12 Apr 2002 22:25:39 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     James Thompson <address@hidden> 02/04/12 22:25:39

Modified files:
        common/src     : GDebug.py 
        forms/src      : GFInstance.py 
        forms/src/GFObjects: GFBlock.py GFEntry.py 

Log message:
        a little more cleanup on the debugger
        misc cleanup

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/GDebug.py.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFInstance.py.diff?tr1=1.43&tr2=1.44&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFObjects/GFBlock.py.diff?tr1=1.44&tr2=1.45&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFObjects/GFEntry.py.diff?tr1=1.51&tr2=1.52&r1=text&r2=text

Patches:
Index: gnue/common/src/GDebug.py
diff -c gnue/common/src/GDebug.py:1.5 gnue/common/src/GDebug.py:1.6
*** gnue/common/src/GDebug.py:1.5       Fri Apr 12 21:18:24 2002
--- gnue/common/src/GDebug.py   Fri Apr 12 22:25:39 2002
***************
*** 40,46 ****
  
  class _stderrcatcher:
      def write(self, str):
!         global _fh, _conttest, _DEBUGGER
          for ch in str:
              if (_conttest == 0):
                  _fh.write("DB000: ")
--- 40,46 ----
  
  class _stderrcatcher:
      def write(self, str):
!         global _fh, _conttest
          for ch in str:
              if (_conttest == 0):
                  _fh.write("DB000: ")
***************
*** 50,57 ****
              else:
                  _fh.write('\n')
                  _conttest = 0
-         if _DEBUGGER:
-             _DEBUGGER.set_trace()
  
      def writelines(self, list):
          for line in list:
--- 50,55 ----
***************
*** 89,96 ****
          text = string.join(strings, '')
          printMesg(0, text)
  
! def printMesg(level, message):
!     global _fh
      if ( int(level) <= int(_DEBUG_LEVEL) ):
        caller = extract_stack()[-2]
        try: 
--- 87,94 ----
          text = string.join(strings, '')
          printMesg(0, text)
  
! def printMesg(level, message, dropToDebugger=0):
!     global _fh, _DEBUGGER
      if ( int(level) <= int(_DEBUG_LEVEL) ):
        caller = extract_stack()[-2]
        try: 
***************
*** 104,111 ****
        lines = string.split("%s" % message, '\n')
        for line in lines:
           _fh.write("DB%03d: %s%s\n" % (level, file, line))
! 
! 
  class GETrace(Exception):
      #
      #Exception class representing a debug message
--- 102,111 ----
        lines = string.split("%s" % message, '\n')
        for line in lines:
           _fh.write("DB%03d: %s%s\n" % (level, file, line))
!       
!       if dropToDebugger and _DEBUGGER:
!         _DEBUGGER.set_trace()
!           
  class GETrace(Exception):
      #
      #Exception class representing a debug message
Index: gnue/forms/src/GFInstance.py
diff -c gnue/forms/src/GFInstance.py:1.43 gnue/forms/src/GFInstance.py:1.44
*** gnue/forms/src/GFInstance.py:1.43   Wed Apr  3 21:10:34 2002
--- gnue/forms/src/GFInstance.py        Fri Apr 12 22:25:39 2002
***************
*** 41,47 ****
  
  from gnue.common.GClientApp import *
  
- 
  class GFInstance(GFEventAware):
    #
    # Initialize the class
--- 41,46 ----
***************
*** 55,61 ****
      self.connections = connections
      self.manager = manager
      self._serial = serial
-     #self._uimodule = ui.GFUserInterface
      self._uimodule = ui
      self._disableSplash = disableSplash
  
--- 54,59 ----
Index: gnue/forms/src/GFObjects/GFBlock.py
diff -c gnue/forms/src/GFObjects/GFBlock.py:1.44 
gnue/forms/src/GFObjects/GFBlock.py:1.45
*** gnue/forms/src/GFObjects/GFBlock.py:1.44    Thu Apr  4 18:02:31 2002
--- gnue/forms/src/GFObjects/GFBlock.py Fri Apr 12 22:25:39 2002
***************
*** 241,247 ****
    # processCommit
    #
    def processCommit(self):
!     GDebug.printMesg(1, "processing commit on block %s"%self.name)
      self.mode='commit'
  
      self._resultSet.setRecord(self._precommitRecord)
--- 241,247 ----
    # processCommit
    #
    def processCommit(self):
!     GDebug.printMesg(1, "processing commit on block %s"%self.name,1)
      self.mode='commit'
  
      self._resultSet.setRecord(self._precommitRecord)
Index: gnue/forms/src/GFObjects/GFEntry.py
diff -c gnue/forms/src/GFObjects/GFEntry.py:1.51 
gnue/forms/src/GFObjects/GFEntry.py:1.52
*** gnue/forms/src/GFObjects/GFEntry.py:1.51    Thu Apr  4 18:02:31 2002
--- gnue/forms/src/GFObjects/GFEntry.py Fri Apr 12 22:25:39 2002
***************
*** 33,39 ****
  from GFValue import GFValue
  import string
  
- 
  ############################################################
  # GFEntry
  #
--- 33,38 ----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]