flyingfrog wrote: > Hi everyone! I'm a python enthusiast, and i'm approaching TurboGears, > but i have a little problem that you should easily help me to solve. > > I've got a python application (python + sqlobject + sqlite). It' s a > quite large stand-alone application, and now i want to port it to the > web using turbogears. > I tried to import in model.py every module of my own application, and > to substitute the devdata.sqlite with my own db file, but that doesn't > seem to be enough!
You should only need to import the sqlobject class definitions in your (TG) project's model.py. > > My problem is that the application logic is quite large, so i don't > want to rewrite it, or copy-paste it somewhere, i just want to add it > to TurboGears model. How easy would it be to turn this application logic into a module of its own that you can reuse? You might have to rework your existing code a little to make this compatibility happen, but a rewrite shouldn't be required. > I've even seen that the normal installation of a > project requires "tg-admin sql create", but i don't need it. I've got > my own functions that instantiate the database and populate it. You probably want to rely on turbogears to create the database connections, but you should be able to get it working with an existing database just fine. hth, -Adam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

