On Sat, 26 Feb 2005 18:28:31 -0500, lloyd wrote:
> middlekit's postgresql code generation appears to presume a
> separate database for each project/model.  is it possible to use a
> table prefix to distinguish models instead of a separate database?
>
> eg instead of a "fooproj" database with "item" and "item_type"
> tables, i'd prefer to put all the project tables in an existing
> company-wide database, and name the tables "foo_item and
> foo_item_type".

There's nothing in MiddleKit for doing that. You'd have to enhance it. Here 
some hints that may help: There *is* a 'Database' setting so I believe you 
could put that in your Settings.config of each model. To get the prefix, you'd 
probably have to invent another setting and enhance Klass' sqlTableName() 
method (in SQLGenerator.py I think).


But I've always put each project in its own db and each WebKit app in its own 
process. Doing so has allowed me to manage things in a modular fashion and I've 
been very happy with that.


-Chuck



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to