Logo Search packages:      
Sourcecode: relational version File versions  Download package

def relational::relation::header::rename (   self,
  old,
  new 
)

Renames a field. Doesn't check if it is a duplicate.
Returns True if the field was renamed, False otherwise

Definition at line 517 of file relation.py.

00517                             :
        '''Renames a field. Doesn't check if it is a duplicate.
        Returns True if the field was renamed, False otherwise'''
        for i in range(len(self.attributes)):
            if self.attributes[i]==old:
                self.attributes[i]=new
                return True
        return False #Requested field was not found    
        
    
    def sharedAttributes(self,other):


Generated by  Doxygen 1.6.0   Back to index