Roger Binns
2004-12-25 07:22:16 UTC
I have just committed the code that uses the database for the phonebook.
I've tested the heck out of it all and everthing is littered with assert
statements. However there are bound to be some issues. Please shout if
you find any anomalies.
You can use the developer console if you want to see what is actually in
the database. The following commands are available from the developer
console:
tables()
rows(tablename)
sql(command)
You have access to the database.Database object as db. You can get a dict
representation of the phonebook using:
db.getmajordictvalues("phonebook")
You'll probably want to do this:
import common
common.prettyprintdict(db.getmajordictvalues("phonebook"))
Now I just have to get around to implementig Undo and change
history ....
Roger
I've tested the heck out of it all and everthing is littered with assert
statements. However there are bound to be some issues. Please shout if
you find any anomalies.
You can use the developer console if you want to see what is actually in
the database. The following commands are available from the developer
console:
tables()
rows(tablename)
sql(command)
You have access to the database.Database object as db. You can get a dict
representation of the phonebook using:
db.getmajordictvalues("phonebook")
You'll probably want to do this:
import common
common.prettyprintdict(db.getmajordictvalues("phonebook"))
Now I just have to get around to implementig Undo and change
history ....
Roger