On Tue, Dec 2, 2008 at 12:36 PM, kgk <[EMAIL PROTECTED]> wrote: > > Is there document describing the process or automatic script to take > an existing application? > > Our TG1 application already uses genshi and SQLAlchemy.
Not that I know of. but the steps should be 1- quickstart a tg2 project, and migrate the code to the appropriate place. The layout is very different due to pylons basic structure. 2- note all calls to cherrpy and transform them to webob requests, this document is very helpful http://pythonpaste.org/webob/differences.html#cherrypy-turbogears 3- fix SQLAlchemy hook code, as the default in tg2 is to use a package as model, this is optional if you already do so. 4- fix any cherrypy dependent code, this is the hardest part as some TG1 app, "abused" cherrypy (and tg1 itself) by playing with it's internals so if you are doing some weird things to CP you need to do them to pylons now :) 5- replace any third-party modules with tg2 equivalents, identity -> repoze.what, catwalk -> rum, etc. I think other than documentation what's needed here is maybe a "success stories" section on the wiki. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
