From ec8218cfc0bd6ead5d3687f9c51d021b20b515bd Mon Sep 17 00:00:00 2001 From: LtWorf Date: Sat, 8 Nov 2008 18:21:31 +0000 Subject: [PATCH] typo git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@53 014f5005-505e-4b48-8d0a-63407b615a7c --- CHANGELOG | 5 +++-- relation.py | 14 ++------------ 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 236ec2f..6da68ba 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 \ No newline at end of file +- Optimized saving of relations +- Can save relations from gui \ No newline at end of file diff --git a/relation.py b/relation.py index f5c361c..80d751b 100644 --- a/relation.py +++ b/relation.py @@ -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 - \ No newline at end of file + pass \ No newline at end of file