typo
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@53 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
ab9a081171
commit
ec8218cfc0
@ -38,6 +38,7 @@
|
|||||||
0.7
|
0.7
|
||||||
- Added README
|
- Added README
|
||||||
- Expressions between quotes aren't parsed anymore
|
- 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
|
- Changed internal rename method. Now uses a dictionary
|
||||||
- Optimized saving of relations
|
- Optimized saving of relations
|
||||||
|
- Can save relations from gui
|
14
relation.py
14
relation.py
@ -143,7 +143,7 @@ class relation (object):
|
|||||||
|
|
||||||
|
|
||||||
def rename(self,params):
|
def rename(self,params):
|
||||||
'''Operation rename. Takes a dictionatu
|
'''Operation rename. Takes a dictionary
|
||||||
Will replace the itmem with its content.
|
Will replace the itmem with its content.
|
||||||
For example if you want to rename a to b, provide {"a":"b"}
|
For example if you want to rename a to b, provide {"a":"b"}
|
||||||
If an "old" field doesn't exist, None will be returned'''
|
If an "old" field doesn't exist, None will be returned'''
|
||||||
@ -416,14 +416,4 @@ class header (object):
|
|||||||
|
|
||||||
|
|
||||||
if __name__=="__main__":
|
if __name__=="__main__":
|
||||||
a=["id","nome","cognome"]
|
pass
|
||||||
|
|
||||||
b=header(a)
|
|
||||||
print "b=", b.__repr__()
|
|
||||||
b.rename("nome","nick")
|
|
||||||
|
|
||||||
a=["id","nome","cognome"]
|
|
||||||
c=header(a)
|
|
||||||
print b, c
|
|
||||||
print b==c
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user