Maybe I am creating my hash all wrong.
view looks like
db=metakit.storage("foo.mk",1)
vw=db.getas("linelists[mid:S,field1:S,field2:S,field3:S,field4:S,field5:S,field6:S,field7:S]")What should the mapped view look like?
And if I need to re-open this later on can I use the same view which I can save somewhere in a dictionary?
Brian Kelley wrote:
Adam Russell wrote:
Varying the number of keys make no difference. Admittedly, the 16 was amistake, however, just using 2 breaks as well with th exact same error.
You might need to send the database along. Could you try this test code? It is the same code that you had, except that it creates a new database and puts in some values. If this fails, then something is wrong with your version of metakit. Otherwise your database might be corrupt.
import metakit import random, string db=metakit.storage("foo.mk",1) vw=db.getas("linelists[mid:S,field:S]") m=db.getas('map[_H:I,_R:I]') vwh=vw.hash(m,2)
# add data for i in range(100): vwh.append((random.choice(string.letters), random.choice(string.letters))) # end add
rows=[] for r in vwh: rows.append((r.mid,r.field))
db=None print rows
_____________________________________________ Metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit
