Blue Sky On Mars

Thoughts on Building Software Products

Don’t import inside of PyObjC actions

by Kevin Dangoor

Bob Ippolito came to my rescue today. I started using Cheetah for some template work, and it turns out that doing:

from Cheetah.Template import Template

from within your action is bad. (Bus Error bad, not simple exception bad.) So, if you’re using PyObjC, make sure you do your imports at the module level, not in a given block of code.
Update: Bob tracked it down. Don’t import Cheetah inside of an action, because it will import PyObjC’s WebKit (thinking that it’s getting WebWare’s WebKit) and importing PyObjC’s WebKit inside of an action has some issue at present. So, go ahead and do imports wherever you want again, as long as it doesn’t involve WebKit :)

Cobb County’s creationism stickers ruled unconstitutional

by Kevin Dangoor

MSNBC – Judge nixes evolution textbook stickers talks about Cobb County, GA’s ridiculous textbook stickers that describe evolution as “a theory, not a fact”. It’s an interesting ruling, and I think it makes sense.

If they want to pursue the whole “Intelligent Design” idea, they should look for a textbook that talks about that, rather than slapping bogus stickers on real textbooks.

Either that, or they can try to get President Bush to vie for a constitutional amendment that would “clarify” evolution’s position as a theory :)