On Wed, Sep 14, 2011 at 05:44:33AM -0700, sk78 wrote:
> I've been trying to import a predefined database in the model.py file.
> All the examples I have found use assign_mapper that seems to be depracated
> and does not work.
I'm not sure if it is the same situation, but I have an existing
database with data.  I basically have an importer script that runs
through each table and populates a new model for each row.
Keeping the ids or primary keys is tricky but not too hard.

It could be that is the exact opposite of what you are trying to do too.

 - Craig
-- 
Craig Small VK2XLZ    http://www.enc.com.au/       csmall at : enc.com.au
Debian GNU/Linux      http://www.debian.org/       csmall at : debian.org
old fingerprint:       1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
NEW fingerprint:       5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to