/[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.10.2.2 by styxman, Thu Jan 30 21:43:22 2003 UTC revision 1.10.2.3 by apronotti, Tue Apr 15 20:55:44 2003 UTC
# Line 92  class GFBlock(GFObj, GFEventAware): Line 92  class GFBlock(GFObj, GFEventAware):
92                              'initQuery':{'function':self.initQuery},                              'initQuery':{'function':self.initQuery},
93                              'processQuery':{'function':self.processQuery},                                                          'processQuery':{'function':self.processQuery},                            
94                              'commit':{'function':self.commit},                              'commit':{'function':self.commit},
95                              'processRollback':{'function':self.processRollback},                                                          'processRollback':{'function':self.processRollback},
96                              }                              }
97    
98    def __getitem__(self, index):    def __getitem__(self, index):
# Line 328  class GFBlock(GFObj, GFEventAware): Line 328  class GFBlock(GFObj, GFEventAware):
328        self._dataSourceLink.createEmptyResultSet()        self._dataSourceLink.createEmptyResultSet()
329      else:      else:
330        tmpRecord = self._dataSourceLink.getCurrentResultSet().getCurrentRecord()        tmpRecord = self._dataSourceLink.getCurrentResultSet().getCurrentRecord()
331        tmpRecord.getFields().update(tmpRecord.getInitialData())        if tmpRecord.isInserted():
332            tmpFields = tmpRecord.getFields()
333            for key in tmpFields.keys():
334              tmpFields[key] = ''
335            tmpRecord._emptyFlag = 1
336          else:  
337            tmpRecord.getFields().update(tmpRecord.getInitialData())
338        tmpRecord.setUpdateFlag(0)        tmpRecord.setUpdateFlag(0)
339                
340      self._dataSourceLink._dataObject.rollback()      self._dataSourceLink._dataObject.rollback()
# Line 417  class GFBlock(GFObj, GFEventAware): Line 423  class GFBlock(GFObj, GFEventAware):
423    
424    def registerScrollBar (self, sb):    def registerScrollBar (self, sb):
425      self._scrollBars.append (sb)      self._scrollBars.append (sb)
426    

Legend:
Removed from v.1.10.2.2  
changed lines
  Added in v.1.10.2.3

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