commit-gnue
[Top][All Lists]
Advanced

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

gnue/forms/src GFDisplayHandler.py GFForm.py GF...


From: James Thompson
Subject: gnue/forms/src GFDisplayHandler.py GFForm.py GF...
Date: Mon, 12 May 2003 19:40:24 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     James Thompson <address@hidden> 03/05/12 19:40:24

Modified files:
        forms/src      : GFDisplayHandler.py GFForm.py GFInstance.py 

Log message:
        forms now note modification at first keypress instead of navigation 
from the entry

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFDisplayHandler.py.diff?tr1=1.53&tr2=1.54&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFForm.py.diff?tr1=1.242&tr2=1.243&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFInstance.py.diff?tr1=1.109&tr2=1.110&r1=text&r2=text

Patches:
Index: gnue/forms/src/GFDisplayHandler.py
diff -c gnue/forms/src/GFDisplayHandler.py:1.53 
gnue/forms/src/GFDisplayHandler.py:1.54
*** gnue/forms/src/GFDisplayHandler.py:1.53     Sat May  3 18:04:53 2003
--- gnue/forms/src/GFDisplayHandler.py  Mon May 12 19:40:23 2003
***************
*** 103,109 ****
             selection=self.getSelectionArea(),
           ))
  
! 
    #####################
    #
    # Editing methods
--- 103,111 ----
             selection=self.getSelectionArea(),
           ))
  
!   def isPending(self):
!     return self.modified
!   
    #####################
    #
    # Editing methods
Index: gnue/forms/src/GFForm.py
diff -c gnue/forms/src/GFForm.py:1.242 gnue/forms/src/GFForm.py:1.243
*** gnue/forms/src/GFForm.py:1.242      Sun Apr 27 15:59:24 2003
--- gnue/forms/src/GFForm.py    Mon May 12 19:40:23 2003
***************
*** 388,396 ****
--- 388,400 ----
        self._currentBlock.deleteRecord()
  
    def isSaved(self):
+     if self._currentEntry._displayHandler.isPending():
+       return 0
+     
      for block in self._logic._blockList:
        if not block.isSaved():
          return 0
+       
      return 1
  
    def initQuery(self):
Index: gnue/forms/src/GFInstance.py
diff -c gnue/forms/src/GFInstance.py:1.109 gnue/forms/src/GFInstance.py:1.110
*** gnue/forms/src/GFInstance.py:1.109  Thu May  8 20:07:02 2003
--- gnue/forms/src/GFInstance.py        Mon May 12 19:40:23 2003
***************
*** 470,475 ****
--- 470,476 ----
        # Refresh entry display if appropriate
        if event.refreshDisplay:
          handler.generateRefreshEvent()
+         event._form.refreshUIEvents()
          # TODO: Don't think this is needed - jst 13-mar-2003
          #self.updateRecordStatus(event._form)
  




reply via email to

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