Rick King wrote:

Could someone give me a quick explanation of "blocked" views? The HTML help
is way too sketchy for me. Or at least point me to another resource where I
might get a better explanation?

You want a Python example, presumably.


I see that there are none in Python the examples/ dir in the source distro, and Brian Kelley's updated docs at http://jura.wi.mit.edu/people/kelley/tutorial/python.html hasn't covered it yet either.

I'll use plain English, and let others come up with accurate Python:

* instead of defining a view "blah[a:I,b:S,c:D]", define
blah[_B[a:I,b:S,c:D]]
* in other words, don't define a view of rows, but a view of views of rows
* when you open the view, replace:
view = storage.view("blah")
with
view = storage.view("blah").blocked()
* or you can use getas, just make sure the structure is as above
* in other words, don't just use the raw view but pass it through blocked()
* that's it


You cannot mix things. When blocked, never access the unblocked view.

You cannot convert data as is, the only way to do so is to copy all data in. In C++ there is a call to insert one view into another (compatible) one, but I think in Python you'll have to copy row by row.

-jcw

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

Reply via email to