Duncan McGreggor
2004-06-28 01:18:39 UTC
Hey folks,
I've got kind of an insane question... insane because Modeling is so
good, and I have a need to use it in a very limited fashion.
One of my clients wants to rollout support for Modeling in their python
applications, but wants to do it without support for primary keys. The
reason for this is that they are pulling meta-data out of databases
(i.e., basic column definitions for tables) but not anything regarding
relationships. They want to create attributes/properties of entities
based on this, and then use these models to programmatically manipulate
live data in the database.
Is using Modeling w/o support for primary keys possible? I have been
trying to do something like this, but it violates rules for valid
models in Modeling, and as such, it won't create any .py package model
files. My attempts at tweaking the code to disable support for PKs have
been catastrophic, as it seems it is woven into the very fabric of the
software. Is there a crazy hack I can use until the client is ready to
support primary keys in the meta-data extraction process?
Thanks for any help or advice!
Duncan
I've got kind of an insane question... insane because Modeling is so
good, and I have a need to use it in a very limited fashion.
One of my clients wants to rollout support for Modeling in their python
applications, but wants to do it without support for primary keys. The
reason for this is that they are pulling meta-data out of databases
(i.e., basic column definitions for tables) but not anything regarding
relationships. They want to create attributes/properties of entities
based on this, and then use these models to programmatically manipulate
live data in the database.
Is using Modeling w/o support for primary keys possible? I have been
trying to do something like this, but it violates rules for valid
models in Modeling, and as such, it won't create any .py package model
files. My attempts at tweaking the code to disable support for PKs have
been catastrophic, as it seems it is woven into the very fabric of the
software. Is there a crazy hack I can use until the client is ready to
support primary keys in the meta-data extraction process?
Thanks for any help or advice!
Duncan