From: <bc...@wo...> - 2001-01-29 13:50:45
|
[Mats Wichmann] >I was just trying out building a small app to display, using >a JFC/Swing gui, some data pulled out of an existing shelf - >here I'm not asking to serialize a Java class. Should this be >possible? Probably not, but it depends on the which database you used to make the shelf. By making sure that dumbdbm is used both when making the shelf and when reading it, it should be possible. The default way of creating and reading a shelf will not work though (as you have seen yourself). >(I've had no luck so far - the gripe is about a >missing anydbm module: would I be likely to be able to pull >this over?) Instead of using shelve.open(..) try instead: import shelve, dumbdbm shelve.Shelf(dumbdbm.open("file")) regards, finn |