/[gnue]/gnue-common/src/datasources/GConnection.py
ViewVC logotype

Diff of /gnue-common/src/datasources/GConnection.py

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

revision 1.1.2.2 by siesel, Fri Oct 10 12:18:47 2003 UTC revision 1.1.2.3 by jcater, Sat Nov 8 16:14:55 2003 UTC
# Line 1  Line 1 
1    #
2    # This file is part of GNU Enterprise.
3    #
4    # GNU Enterprise is free software; you can redistribute it
5    # and/or modify it under the terms of the GNU General Public
6    # License as published by the Free Software Foundation; either
7    # version 2, or (at your option) any later version.
8    #
9    # GNU Enterprise is distributed in the hope that it will be
10    # useful, but WITHOUT ANY WARRANTY; without even the implied
11    # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12    # PURPOSE. See the GNU General Public License for more details.
13    #
14    # You should have received a copy of the GNU General Public
15    # License along with program; see the file COPYING. If not,
16    # write to the Free Software Foundation, Inc., 59 Temple Place
17    # - Suite 330, Boston, MA 02111-1307, USA.
18    #
19    # Copyright 2000-2003 Free Software Foundation
20    #
21    # FILE:
22    # GConnection.py
23    #
24    # DESCRIPTION:
25    #
26    # NOTES:
27    #
28    
29    
 System Init:  
    +-- GConnections initializes  
    +-- GParser initializes:  
      +-- GDataSource loaded  
    +-- GDataSources Intialized  
      +-- GConnection.getDataObject()  
        +--  
   
 class Connection(GConnection.Connection):  
   
    def __init__(self):  
         
       self._encoding = 'iso8859-1'  # contain encoding used by database  
         
       try:  
          self._encoding = gConfig('textEncoding')  
       except:  
          pass  
30    
31    # System Init:
32    #   +-- GConnections initializes
33    #   +-- GParser initializes:
34    #     +-- GDataSource loaded
35    #   +-- GDataSources Intialized
36    #     +-- GConnection.getDataObject()
37    #       +--
38    #
39    class Connection:
40      def __init__(self, connections, parameters):
41        self.manager = connections
42        self.parameters = parameters
43        
44        self._encoding = 'iso8859-1'  # encoding used by database
45    
46        try:
47          self._encoding = gConfig('textEncoding')
48        except:
49          pass
50    
51      # Commit changes to the database
52      def commit(self):
53        pass
54    
55      # Rollback changes to the database
56      def rollback(self):
57        pass
58    
59      # Close the connection to the database backend
60      def close(self):
61        pass

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

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