My guess is the storage is going out of scope and being garbage collected and thereby closing your views without you knowing about it. You should keep the storage object in scope for your entire application run.

Here is some proof of this:

>>> storage = metakit.storage()
>>> vw = storage.getas("test[I:I]")
>>> vw.append(1)
0
>>> del storage
>>> len(vw)
1
>>> vw[0].I
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
AttributeError: I
>>>

I'm of two minds whether I think this is a bug or not. I think it might be onerous for the python wrapper to keep track of all the views/subviews and like being created and used.

It should still be in the documentation though :)

I'll update my working docs with this tidbit.

Brian

_______________________________________________
metakit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to