commit-gnue
[Top][All Lists]
Advanced

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

gnue-forms doc/Developers-Guide.sxw src/GFClien...


From: Jason Cater
Subject: gnue-forms doc/Developers-Guide.sxw src/GFClien...
Date: Mon, 21 Jul 2003 22:24:18 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue-forms
Branch:         
Changes by:     Jason Cater <address@hidden>    03/07/21 22:24:18

Modified files:
        doc            : Developers-Guide.sxw 
        src            : GFClient.py GFDisplayHandler.py 

Log message:
        capture form initialization errors and display more friendly

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-forms/doc/Developers-Guide.sxw.diff?tr1=1.32&tr2=1.33&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-forms/src/GFClient.py.diff?tr1=1.70&tr2=1.71&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-forms/src/GFDisplayHandler.py.diff?tr1=1.58&tr2=1.59&r1=text&r2=text

Patches:
Index: gnue-forms/doc/Developers-Guide.sxw
Index: gnue-forms/src/GFClient.py
diff -c gnue-forms/src/GFClient.py:1.70 gnue-forms/src/GFClient.py:1.71
*** gnue-forms/src/GFClient.py:1.70     Mon May 26 17:54:32 2003
--- gnue-forms/src/GFClient.py  Mon Jul 21 22:24:18 2003
***************
*** 141,147 ****
      # Hack for McMillan packaging on win32
      if hasattr(sys, 'frozen') and self.ui_type == 'wx':
        self._ui.UILoginHandler().getDummyLogin()
!     
      #
      # Create the Instance that will control the loaded form(s)
      #
--- 141,147 ----
      # Hack for McMillan packaging on win32
      if hasattr(sys, 'frozen') and self.ui_type == 'wx':
        self._ui.UILoginHandler().getDummyLogin()
! 
      #
      # Create the Instance that will control the loaded form(s)
      #
***************
*** 152,158 ****
  
      instance.addFormFromFile(formfile)
      instance.addDialogs()
!     instance.activate()
  
  if __name__ == '__main__':
    GFClient().run()
--- 152,164 ----
  
      instance.addFormFromFile(formfile)
      instance.addDialogs()
!     try:
!       instance.activate()
!     except StandardError, msg:
!       # TODO: if in debug mode, re-raise the exception??
!       self.handleStartupError(msg)
! #    except SyntaxError:
! #      raise
  
  if __name__ == '__main__':
    GFClient().run()
Index: gnue-forms/src/GFDisplayHandler.py
diff -c gnue-forms/src/GFDisplayHandler.py:1.58 
gnue-forms/src/GFDisplayHandler.py:1.59
*** gnue-forms/src/GFDisplayHandler.py:1.58     Mon Jun 16 17:32:29 2003
--- gnue-forms/src/GFDisplayHandler.py  Mon Jul 21 22:24:18 2003
***************
*** 649,654 ****
--- 649,655 ----
      else:
        format = "%m/%d/%y"
  
+ ##    print "format=%s, value=%s, type=%s" % (format, value, type(value))
      if value in (None,""):
        return ""
      try:
***************
*** 965,973 ****
          im = Image.open(value)
        except IOError:
          im = Image.new("RGB",(1,1,))
!     
      return im
!     
  
  #############################################################################
  #
--- 966,974 ----
          im = Image.open(value)
        except IOError:
          im = Image.new("RGB",(1,1,))
! 
      return im
! 
  
  #############################################################################
  #
***************
*** 978,982 ****
      FieldDisplayHandler.__init__(self, entry, eventHandler, None)
  
    def _buildDisplayHelper(self, value, editing):
!     if string.lower(self.entry.type) == 'url':    
        return value
--- 979,983 ----
      FieldDisplayHandler.__init__(self, entry, eventHandler, None)
  
    def _buildDisplayHelper(self, value, editing):
!     if string.lower(self.entry.type) == 'url':
        return value




reply via email to

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