/[gnue]/gnue-pos/src/backends/Base/Driver.py
ViewVC logotype

Diff of /gnue-pos/src/backends/Base/Driver.py

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

revision 1.1 by jcater, Tue Jun 17 22:30:52 2003 UTC revision 1.2 by jcater, Fri Jul 4 05:37:40 2003 UTC
# Line 28  Line 28 
28  #  #
29    
30  from gnue.common.events.EventAware import EventAware  from gnue.common.events.EventAware import EventAware
31    from gnue.common.datasources import GConditions
32    from gnue.common.datasources.GDataSource import DataSourceWrapper
33    
34    CONN = gConfig('BackendConnection')
35    
36  class Driver(EventAware):  class Driver(EventAware):
37    
# Line 53  class Driver(EventAware): Line 57  class Driver(EventAware):
57      self.init()      self.init()
58    
59    
60      def _getResultSet(self, table, fields, conditions={}):
61        datasource = DataSourceWrapper(self.instance.connections,
62                       fields=fields,
63                       attributes={'connection': CONN,
64                                   'name': 'dts%s' % table,
65                                   'table': table } )
66        resultset = datasource.createResultSet(
67                conditions=conditions,
68                readOnly=1)
69        return resultset
70    
71      def _createResultSet(self, table, fields):
72        datasource = DataSourceWrapper(self.instance.connections,
73                       fields=fields,
74                       attributes={'connection': CONN,
75                                   'name': 'dts%s' % table,
76                                   'table': table } )
77        resultset = datasource.createEmptyResultSet()
78        return resultset
79    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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