using Modeling w/o primary keys

Duncan McGreggor <[email protected]> Sun, 27 Jun 2004 15:04:35 -0400
Newsgroups gmane.comp.python.modeling
Message-ID <[email protected]>
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



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com