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

def relational::relation::relation::rename (   self,
  params 
)

Operation rename. Takes a dictionary
Will replace the itmem with its content.
For example if you want to rename a to b, provide {"a":"b"}
If an "old" field doesn't exist, None will be returned

Definition at line 180 of file relation.py.

00180                            :
        '''Operation rename. Takes a dictionary
        Will replace the itmem with its content.
        For example if you want to rename a to b, provide {"a":"b"}
        If an "old" field doesn't exist, None will be returned'''
        result=[]
        
        newt=relation()
        newt.header=header(list(self.header.attributes))
        
        for old,new in params.iteritems():
            if (newt.header.rename(old,new)) == False:
                return None
        
        newt.content=list(self.content)
        return newt
        
    def intersection(self,other):


Generated by  Doxygen 1.6.0   Back to index