MetaKit for python (Mk4py) on Macintosh ... no way :(

Jean-Claude Wippler jcw at equi4.com
Thu Mar 2 20:31:29 CET 2000


Frank,

> Of course, I meant to say 'I have NOT figured out how to do that
> yet with Mk4py'.

Perhaps the following helps:

import Mk4py
db=Mk4py.Storage()
vw=db.getas("people[name:S,age:I,weight:F]")
vw.append(name='Tarzan',age=34,weight=45.6)
vw.append(name='Jane',age=23,weight=34.5)

props = vw.structure()
for r in vw:
	for p in props:
		print getattr(r,p.name),
	print

Please consider posting MetaKit-specific questions on the MK-Scripting
mailing list, see http://sourceforge.net/mail/?group_id=736

-- Jean-Claude



More information about the Python-list mailing list