commit-gnue
[Top][All Lists]
Advanced

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

gnue/designer/src base/MRUManager.py templates/...


From: James Thompson
Subject: gnue/designer/src base/MRUManager.py templates/...
Date: Fri, 04 Apr 2003 18:05:32 -0500

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     James Thompson <address@hidden> 03/04/04 18:05:32

Modified files:
        designer/src/base: MRUManager.py 
        designer/src/templates/forms: Simple.py 

Log message:
        fix for remove
        small fix in simply wiz

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/base/MRUManager.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/templates/forms/Simple.py.diff?tr1=1.16&tr2=1.17&r1=text&r2=text

Patches:
Index: gnue/designer/src/base/MRUManager.py
diff -c gnue/designer/src/base/MRUManager.py:1.7 
gnue/designer/src/base/MRUManager.py:1.8
*** gnue/designer/src/base/MRUManager.py:1.7    Fri Apr  4 15:56:55 2003
--- gnue/designer/src/base/MRUManager.py        Fri Apr  4 18:05:32 2003
***************
*** 58,64 ****
  
    def addLocation(self, location): 
      absloc = os.path.normcase(os.path.abspath(location))
!     self._locations.remove(absloc)
      ## for i in range(len(self._locations)): 
  ##       if self._locations[i] == absloc: 
  ##         self._locations.pop(i)
--- 58,67 ----
  
    def addLocation(self, location): 
      absloc = os.path.normcase(os.path.abspath(location))
!     try:
!       self._locations.remove(absloc)
!     except ValueError:
!       pass
      ## for i in range(len(self._locations)): 
  ##       if self._locations[i] == absloc: 
  ##         self._locations.pop(i)
Index: gnue/designer/src/templates/forms/Simple.py
diff -c gnue/designer/src/templates/forms/Simple.py:1.16 
gnue/designer/src/templates/forms/Simple.py:1.17
*** gnue/designer/src/templates/forms/Simple.py:1.16    Wed Jan  1 19:45:47 2003
--- gnue/designer/src/templates/forms/Simple.py Fri Apr  4 18:05:32 2003
***************
*** 256,262 ****
        # If we have a length for the field, use this as the max_length
        # for the entry. Also, adjust the display width if necessary.
        if hasattr(field,'length'):
!         ln = min(field.length, 25)
          attrs['max_length'] = ln
          largestField = max(largestField, ln)
        else:
--- 256,264 ----
        # If we have a length for the field, use this as the max_length
        # for the entry. Also, adjust the display width if necessary.
        if hasattr(field,'length'):
!         ln = max(min(field.length, 25),0) or 10
!                   
!         ##ln = min(field.length, 25)
          attrs['max_length'] = ln
          largestField = max(largestField, ln)
        else:




reply via email to

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