Re: [Modeling-users] problem with the simplest of the model
Status: Abandoned
Brought to you by:
sbigaret
From: Lorenzo G. S. <lg...@si...> - 2004-09-29 10:12:03
|
I wrote a patch yesterday to fix this problem so I'll attach it here for further review Lorenzo El mar, 28-09-2004 a las 12:24 +0200, Lorenzo Gil Sanchez escribió: > 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...> |