[Modeling-users] problem with the simplest of the model
Status: Abandoned
Brought to you by:
sbigaret
From: Lorenzo G. S. <lg...@si...> - 2004-09-28 10:25:06
|
Hello, I'm upgrade Modeling with the latest cvs and now, for a very simple model, the script mdl_generate_DB_schema.py gives me errors: ----------------- mdl_generate_DB_schema.py -v -C --admin-dsn localhost:pets.sqlite:kk:zz model_pets2.py Loading the model... Error: model has errors: Aborting ------------------ As you can see I can't know what is wrong with my model, which I'll paste right here: from Modeling.PyModel import * Entity.defaults['properties'] = [ APrimaryKey('id', isClassProperty=0, isRequired=1, doc='PK') ] model = Model('Pets', adaptorName='SQLite', connDict={'database': 'pets.sqlite'}, version='0.1') model.entities = [ Entity('Person', properties = [AString('name', isRequired=1)] ), Entity('Animal', properties = [AString('name', isRequired=1)] ) ] model.build() -- Lorenzo Gil Sanchez <lg...@si...> |