Presentation tonight at the Michigan!/usr/group
by Kevin Dangoor
I’ll be presenting TurboGears tonight at the MUG meeting in Farmington Hills, Michigan. My plan is to do the live version of the “20 Minute Wiki”, newly modified for TurboGears 0.9. The 0.9 “20 Minute Wiki” is functionally equivalent to the 0.8 version, but the code is nicer.
Sorry for the late notice!
Turbogears…
Today at our LUG meeting we had an awesome set of presentations from Mark Ramm on Python, and from Kevin Dangoor on Turbogears, a new(ish) web application framework for Python. Kevin started TG in september, is already becoming very popular….
Not sure if this is a good place to leave this, but I wanted to make a comment on the “20 minute wiki”. First let me start out by saying that this is really great to have and really helps getting your feet wet. I had a little trouble getting sqlite3 installed correctly but after that, no problems.
Anyhow, what I had wanted to mention is that for me on Mac OS X, the default 20 min. wiki would crash when I input Japanese text on a wiki page. This was a minor fix that makes it work again:
# in controllers.py in class Root
@turbogears.expose(html=”wiki20.templates.edit”)
def edit(self, pagename):
page = Page.byPagename(pagename)
data=unicode(page.data,’utf-8′) # this is new
return dict(data=data,pagename=page.pagename, new=False)
Not sure if this works in general but just thought I’d share. I do a lot of English/Japanese stuff with python so I always try to put some Japanese into something when I see it the first time. It’s nice to know (at least to the extent of my test set-up) that turbogears can handle the international text.
Cheers,
Michael