Am 07.03.2011 00:33 schrieb Eric Hawthorne:
Hi I am finally trying to get my old production tg1.0 webapp going in
the 1.1 generation.

Good idea. You should also consider moving further to TG 1.5 once your app is running on 1.1.

I can't find a guide or tips or procedure for updating a 1.0 app. Does
anyone have any pointers?

http://docs.turbogears.org/1.1/Upgrade
http://docs.turbogears.org/1.5/Upgrade

Right now its failing on genshi not finding any .html templates. This is
because my 145 templates are .kid files.

1. Do I just change their names to .html and voila?

No. You need to change some more things. Btw, there is a tg-admin command that does the simple things for you, like renaming .kid to .html

It's best explained here:

http://docs.turbogears.org/1.5/Upgrade#replacing-kid-with-genshi

2. Is there a way to make Genshi look for .kid files without changing
the filenames?

No, and I don't think it's a good idea.

3. Is there a way to have 1.1.1 use kid instead? How do I configure
that? is there a separate download required? I'm on ubuntu 10.04
with python-turbogears package which installs 1.1.1-ubuntu

That's absolutely possible and I recommend it as a first step when converting to 1.1 or 1.5. Since Genshi is now the default, the only thing you need to do is tell TG explicitely to use Kid instead by
setting tg.defaultview = 'kid' in your app.cfg file.

If you move to 1.5 and are using Kid for TG widget templates, you should also put a kid: prefix to your widget templates.

http://docs.turbogears.org/1.5/Upgrade#id4

4. What if any issues/problems should I expect having Genshi parse these
145 pretty complex kid templates?

If your templates use only the "standard" directives like py:if, py:content etc. I don't expect problems. What's different is primarily the inheritance mechanism, so you will need to make some changes to your master.html as explained in the link above.

Thanks very much for any assistance. Given the complexity of my app
this is a scary task. Maybe someone can reassure me it's going to be
a breeze and give me a few key tips to smooth the process.

I've already migrated two web apps with a similar complexity from Kid to Genshi and it was not a big deal. What's much more challenging is migrating from SQLObject to SQLAlchemy if you want to do that.

-- Christoph

--
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.

Reply via email to