/[gnue]/gnue-common/src/datasources/drivers/dbf/Schema/Discovery/Introspection.py
ViewVC logotype

Diff of /gnue-common/src/datasources/drivers/dbf/Schema/Discovery/Introspection.py

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

revision 1.1.2.1 by jcater, Fri Oct 10 01:21:14 2003 UTC revision 1.1.2.2 by jcater, Wed Nov 19 03:00:24 2003 UTC
# Line 62  class Introspection(GIntrospection.Intro Line 62  class Introspection(GIntrospection.Intro
62    # Return a list of Schema objects    # Return a list of Schema objects
63    # Return a list of Schema objects    # Return a list of Schema objects
64    def getSchemaList(self, type=None):    def getSchemaList(self, type=None):
65      tablename=self.native.fname      tablename=self._connection.native.fname
66      if tablename[-4:]=='.dbf':      if tablename[-4:]=='.dbf':
67          tablename=tablename[:-4]          tablename=tablename[:-4]
68    
# Line 75  class Introspection(GIntrospection.Intro Line 75  class Introspection(GIntrospection.Intro
75    
76    # Find a schema object with specified name    # Find a schema object with specified name
77    def getSchemaByName(self, name, type=None):    def getSchemaByName(self, name, type=None):
78      tablename=self.native.fname      tablename=self._connection.native.fname
79      if tablename[-4:]=='.dbf':      if tablename[-4:]=='.dbf':
80          tablename=tablename[:-4]          tablename=tablename[:-4]
81    
# Line 88  class Introspection(GIntrospection.Intro Line 88  class Introspection(GIntrospection.Intro
88    def __getFieldSchema(self, parent):    def __getFieldSchema(self, parent):
89    
90      list = []      list = []
91      for field in self.native.fields:      for field in self._connection.native.fields:
92    
93        fname=string.lower(field[0])        fname=string.lower(field[0])
94    

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

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