[Metakit] Hash view questions

Jean-Claude Wippler jcw at equi4.com
Wed Feb 1 16:28:58 CET 2006


gary.h.merrill at gsk.com wrote:

>                       vw = metakit.view()
>
> But how do you "structure" this view?  The .getas() method appears  
> to apply only to a storage.

Correct.

> Do you then need to create the individual properties and added them  
> to the view with view.addproperty()?  Is there a more direct way  
> than this?

I should probably give the Python experts time to respond.  I think  
that also with Mk4py, properties get added as soon as they are set  
(added as temp props, since there is no backing store anyway).  You  
could even add a row, set some properties, and then delete the row  
again.  Not sure about subviews.  Note that internally, views outside  
a storage are essentially just views with their private hidden in- 
memory storage under the hood.  My suggestion would be: why not try it?

-jcw




More information about the Metakit mailing list