commit-gnue
[Top][All Lists]
Advanced

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

gnue common/src/GDataSource.py forms/src/GFForm.py


From: Jason Cater
Subject: gnue common/src/GDataSource.py forms/src/GFForm.py
Date: Sat, 28 Sep 2002 02:10:46 -0400

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/09/28 02:10:46

Modified files:
        common/src     : GDataSource.py 
        forms/src      : GFForm.py 

Log message:
        added explicitfields attribute for updatable datasources with no 
corresponding block [temp]

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/GDataSource.py.diff?cvsroot=OldCVS&tr1=1.37&tr2=1.38&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/forms/src/GFForm.py.diff?cvsroot=OldCVS&tr1=1.180&tr2=1.181&r1=text&r2=text

Patches:
Index: gnue/common/src/GDataSource.py
diff -c gnue/common/src/GDataSource.py:1.37 gnue/common/src/GDataSource.py:1.38
*** gnue/common/src/GDataSource.py:1.37 Thu Jul 25 01:36:08 2002
--- gnue/common/src/GDataSource.py      Sat Sep 28 02:10:45 2002
***************
*** 90,95 ****
--- 90,103 ----
      else:
        raise AttributeError, attr
  
+   def _buildObject(self):
+     try:
+       for field in string.split(self.explicitfields,','):
+         self._fieldReferences[field] = 1
+     except AttributeError:
+       pass
+     return GObjects.GObj._buildObject(self)
+ 
  
    def triggerSimpleQuery(self,maskDict):
      queryDict = {}
***************
*** 115,121 ****
  
    def deleteCurrentRecordsetEntry(self):
      self._currentResultSet.getPostingRecordset().delete()
!     
    def callFuncOfCurrentRecordsetEntry(self,name,params):
      n=self._currentResultSet.getRecordNumber()
      rset=self._currentResultSet.getRecord(n)
--- 123,129 ----
  
    def deleteCurrentRecordsetEntry(self):
      self._currentResultSet.getPostingRecordset().delete()
! 
    def callFuncOfCurrentRecordsetEntry(self,name,params):
      n=self._currentResultSet.getRecordNumber()
      rset=self._currentResultSet.getRecord(n)
***************
*** 361,366 ****
--- 369,377 ----
              'masterlink':  {
                 'Typecast': GTypecast.text },
              'detaillink':  {
+                'Typecast': GTypecast.text },
+             # TODO: Short-term hack
+             'explicitfields': {
                 'Typecast': GTypecast.text } },
           'ParentTags': None },
        'staticset': {
Index: gnue/forms/src/GFForm.py
diff -c gnue/forms/src/GFForm.py:1.180 gnue/forms/src/GFForm.py:1.181
*** gnue/forms/src/GFForm.py:1.180      Sat Sep 28 01:46:31 2002
--- gnue/forms/src/GFForm.py    Sat Sep 28 02:10:46 2002
***************
*** 455,465 ****
              # This gets lost in the Pre-Commit code
              block._precommitRecord = block._currentRecord
  
-             # TODO: Need to check with jamest..
-             # Now, block-level pre-commits get called for
-             # EACH record via another hook in GFDataSource
-             ##block.processTrigger('Pre-Commit')
- 
              block.processCommit()
            except TriggerError:
              GDebug.printMesg(1, "Trigger block Pre-Commit threw a 
TriggerError!")
--- 455,460 ----




reply via email to

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