credits and python way to iterate dictionary
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@56 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
4cd7bc533c
commit
3f6c989212
@ -152,8 +152,8 @@ class relation (object):
|
|||||||
newt=relation()
|
newt=relation()
|
||||||
newt.header=header(list(self.header.attributes))
|
newt.header=header(list(self.header.attributes))
|
||||||
|
|
||||||
for i in params:
|
for old,new in params.iteritems():
|
||||||
if (newt.header.rename(i,params[i])) == False:
|
if (newt.header.rename(old,new)) == False:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
newt.content=list(self.content)
|
newt.content=list(self.content)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user