On Wed, Oct 15, 2008 at 10:28 PM, Jorge Vargas <[EMAIL PROTECTED]> wrote:
>
> Hello guys.
>
> I have answer this two times in the past 2 days on IRC, which i think
> is something that could be back ported or at least write some
> documentation.
>
> The issue at hand is that people want to prepopulate either test data
> or default SQL rows values, to their models.
>
> a long time ago I don't even remember how I found out that doing.
> $ tg-admin shell < myscript.py
> will execute any SO commands in that script, I even have some SO code
> that will drop all tables, and rebuild them as necessary.
>
> I assume this trick also works for SA. But it's a weird thing and as
> far as I know it isn't documented anywhere.
>
> either way I think this should be a tg-admin command. What do you think?

sa commands is a good place to put any setup specific command ala websetup...

If you document a method please document this one which is the
cleaner. I recommend naming the entry point bootstrap
(myapp-bootstrap). If you need more info to begin writing docs on this
method don't hesitate I'll gladly help.

Florent.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to