commit-gnue
[Top][All Lists]
Advanced

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

gnue/common/src GDataObjects.py


From: Arturas Kriukovas
Subject: gnue/common/src GDataObjects.py
Date: Fri, 03 May 2002 13:13:29 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Arturas Kriukovas <address@hidden>      02/05/03 13:13:29

Modified files:
        common/src     : GDataObjects.py 

Log message:
        i18n changes.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/GDataObjects.py.diff?tr1=1.48&tr2=1.49&r1=text&r2=text

Patches:
Index: gnue/common/src/GDataObjects.py
diff -c gnue/common/src/GDataObjects.py:1.48 
gnue/common/src/GDataObjects.py:1.49
*** gnue/common/src/GDataObjects.py:1.48        Fri Apr 12 01:29:11 2002
--- gnue/common/src/GDataObjects.py     Fri May  3 13:13:29 2002
***************
*** 388,394 ****
    def insertRecord(self):
      if self.isReadOnly():
        # Provide better feedback??
!       raise ReadOnlyError, "Attempted to insert into a read only datasource"
      else:
        GDebug.printMesg(7,'Inserting a blank record')
        self._currentRecord += 1
--- 388,394 ----
    def insertRecord(self):
      if self.isReadOnly():
        # Provide better feedback??
!       raise ReadOnlyError, _("Attempted to insert into a read only 
datasource")
      else:
        GDebug.printMesg(7,'Inserting a blank record')
        self._currentRecord += 1
***************
*** 608,614 ****
      # generate an error.
      if self._parent.isFieldBound(field) and self._parent.isReadOnly():
        # Provide better feedback??
!       raise ReadOnlyError, "Attempted to modify read only field '%s'" % field
      else:
        fn = string.lower(field)
        self._fields[fn] = value
--- 608,614 ----
      # generate an error.
      if self._parent.isFieldBound(field) and self._parent.isReadOnly():
        # Provide better feedback??
!       raise ReadOnlyError, _("Attempted to modify read only field '%s'") % 
field
      else:
        fn = string.lower(field)
        self._fields[fn] = value
***************
*** 638,644 ****
    def delete(self):
      if self._parent.isReadOnly():
        # Provide better feedback??
!       raise ReadOnlyError, "Attempted to delete from a read only datasource"
      else:
        self._deleteFlag = 1
  
--- 638,644 ----
    def delete(self):
      if self._parent.isReadOnly():
        # Provide better feedback??
!       raise ReadOnlyError, _("Attempted to delete from a read only 
datasource")
      else:
        self._deleteFlag = 1
  



reply via email to

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