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

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

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

revision 1.72.2.3 by jcater, Wed Nov 19 02:07:06 2003 UTC revision 1.72.2.4 by jcater, Wed Nov 19 03:00:23 2003 UTC
# Line 37  from drivers.Base import * Line 37  from drivers.Base import *
37  # Used to store schema data  # Used to store schema data
38  # TODO: Is this used anywhere??  # TODO: Is this used anywhere??
39  import string  import string
 class Schema:  
   def __init__(self, attrs={}, getChildSchema=None):  
     self.name = ''  
     self.type = ''  
     self.__dict__.update(attrs)  
     if getChildSchema != None:  
       self.getChildSchema = getChildSchema  
   
   def __cmp__(self, other):  
     if not isinstance(other, Schema):  
       return 1  
     elif id(other) == id(self):  
       return 0  
     else:  
       return cmp(string.lower(self.name), string.lower(other.name)) or 1  
   
   def getChildSchema(self, parent):  
     return ()  
   
   
   

Legend:
Removed from v.1.72.2.3  
changed lines
  Added in v.1.72.2.4

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