problem with the simplest of the model
Lorenzo Gil Sanchez <[email protected]> Tue, 28 Sep 2004 12:24:22 +0200
| Newsgroups | gmane.comp.python.modeling |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php