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:
LtWorf 2008-11-10 17:12:53 +00:00
parent 4cd7bc533c
commit 3f6c989212
2 changed files with 3 additions and 2 deletions

1
CREDITS Normal file
View File

@ -0,0 +1 @@
Ori Avtalion for suggesting some improvements

View File

@ -152,8 +152,8 @@ class relation (object):
newt=relation()
newt.header=header(list(self.header.attributes))
for i in params:
if (newt.header.rename(i,params[i])) == False:
for old,new in params.iteritems():
if (newt.header.rename(old,new)) == False:
return None
newt.content=list(self.content)