git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@53 014f5005-505e-4b48-8d0a-63407b615a7c
master
LtWorf 2008-11-08 18:21:31 +07:00
parent ab9a081171
commit ec8218cfc0
2 changed files with 5 additions and 14 deletions

@ -38,6 +38,7 @@
0.7
- Added README
- Expressions between quotes aren't parsed anymore
- When adding a relation, the file must be choosen 1st, and then the default relation's name is the same as the filename
- When adding a relation, the file must be chosen 1st, and then the default relation's name is the same as the filename
- Changed internal rename method. Now uses a dictionary
- Optimized saving of relations
- Optimized saving of relations
- Can save relations from gui

@ -143,7 +143,7 @@ class relation (object):
def rename(self,params):
'''Operation rename. Takes a dictionatu
'''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'''
@ -416,14 +416,4 @@ class header (object):
if __name__=="__main__":
a=["id","nome","cognome"]
b=header(a)
print "b=", b.__repr__()
b.rename("nome","nick")
a=["id","nome","cognome"]
c=header(a)
print b, c
print b==c
pass