/[papo]/gnue/forms/src/GFObjects/GFBlock.py
ViewVC logotype

Diff of /gnue/forms/src/GFObjects/GFBlock.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by apronotti, Fri Sep 6 19:24:05 2002 UTC revision 1.8 by apronotti, Wed Sep 11 23:09:44 2002 UTC
# Line 92  class GFBlock(GFObj, GFEventAware): Line 92  class GFBlock(GFObj, GFEventAware):
92                              'initQuery':{'function':self.initQuery},                              'initQuery':{'function':self.initQuery},
93                              'newRecord':{'function':self.newRecord},                                                          'newRecord':{'function':self.newRecord},                            
94                              'processQuery':{'function':self.processQuery},                                                          'processQuery':{'function':self.processQuery},                            
95                              'processCommit':{'function':self.processCommit},                              'commit':{'function':self.commit},
96                              'processRollback':{'function':self.processRollback},                                                          'processRollback':{'function':self.processRollback},                            
97                              }                              }
98    
# Line 267  class GFBlock(GFObj, GFEventAware): Line 267  class GFBlock(GFObj, GFEventAware):
267      self._currentRecord = self._resultSet.getRecordNumber()      self._currentRecord = self._resultSet.getRecordNumber()
268      self.switchRecord(jump)      self.switchRecord(jump)
269    
270      def commit(self):
271        self.getForm().changeFocus(self)    
272        self.getForm().commit()
273    
274      def getForm(self):
275        return self._form
276    
277    #    #
278    # processCommit    # processCommit
279    #    #
# Line 274  class GFBlock(GFObj, GFEventAware): Line 281  class GFBlock(GFObj, GFEventAware):
281      GDebug.printMesg(1, "processing commit on block %s"%self.name,1)      GDebug.printMesg(1, "processing commit on block %s"%self.name,1)
282      self.mode='commit'      self.mode='commit'
283    
     if not hasattr(self,'_precommitRecord'):  
       self._precommitRecord = self._currentRecord  
         
284      self._resultSet.setRecord(self._precommitRecord)      self._resultSet.setRecord(self._precommitRecord)
285    
286      if not self._dataSourceLink.hasMaster():      if not self._dataSourceLink.hasMaster():
# Line 323  class GFBlock(GFObj, GFEventAware): Line 327  class GFBlock(GFObj, GFEventAware):
327      self._dataSourceLink._dataObject.rollback()      self._dataSourceLink._dataObject.rollback()
328      self.switchRecord(0)      self.switchRecord(0)
329    
330    
331    #    #
332    # initQuery and processQuery    # initQuery and processQuery
333    #    #

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26