The following is a snippit of code that I use to pre-populate a database with sample values: (note that it isn't simply redirecting a file to tg-admin shell.)
Individual classes which will -always- have stock data (like Province, Country, Language, etc.) have a classmethod called init_data which returns a list of created records, usually with the following structure:
|
- [TurboGears] Re: Automatic database filling Matthew Bevan
- [TurboGears] Re: Automatic database filling Jorge Vargas

