Hi all, I want to use turbogears with a pre-existent db file. I've got
my functions initializing it for me, and it's already filled up with
datas.
So i copy the devdata.sqlite file into my turbogears project directory.
Then i update the turbogears model importing my application classes,
just like this:
from sqlobject import *
import aisa.registry
import aisa.prices
import aisa.core
import aisa.billing
import aisa.economy
import aisa.tickler
from turbogears.database import PackageHub
hub = PackageHub("aisa")
__connection__ = hub
# class YourDataClass(SQLObject):
# pass
After that i add my packages to sqlobject.txt file that now lloks like:
db_module=aisa.model,aisa.billing,aisa.tickler,aisa.registry,aisa.economy,aisa.prices,aisa.core
history_dir=$base/aisa/sqlobject-history
but when i run tg-admin toolbox, the catwalk page is empty, blank...
nothing at all!!
What should I do??
Thanx
Marco
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---