On Thu, Dec 02, 2010 at 06:58:26PM +0100, Christoph Zwerschke wrote: > Am 02.12.2010 16:05 schrieb Toshio Kuratomi: > >Uh oh. I've been running it with python-2.6 (in development, not > >production) for a while and I have it built for python-2.7 but haven't > >stress tested it there. Do you know where/how TG-1.0.x fails on python-2.6? > >It's possible we have a patch for the specific problems. > > I think the main problem was RuleDispatch not running on Python 2.6. > But maybe that has been solved in the meantime. TG 1.1 uses > PEAK-Rules instead of RuleDispatch. > <nod> We have a pair of patches for py2.6 and py2.7 in our RuleDispatch package. I'll be happy to move off of it, though. TG-1.1 is built now, just need to put it through some testing.
It did fail a unit test where javascript files were served as text/javascript but the test case expected application/javascript. I changed the test code to accept text/javascript as well. I can open a bug if you like but I'll attach the patch in case I'm moving in the wrong direction. -Toshio
Index: TurboGears-1.1.1/turbogears/tests/test_controllers.py
===================================================================
--- TurboGears-1.1.1.orig/turbogears/tests/test_controllers.py
+++ TurboGears-1.1.1/turbogears/tests/test_controllers.py
@@ -301,7 +301,8 @@ class TestRoot(testutil.TGTest):
"""Can access the JavaScript files"""
response = self.app.get("/tg_js/MochiKit.js", status=200)
assert response.headers["Content-Type"] in [
- "application/javascript", "application/x-javascript"]
+ "application/javascript", "application/x-javascript",
+ "text/javascript"]
def test_json_output(self):
response = self.app.get("/test?tg_format=json")
pgpSF2VATCVFF.pgp
Description: PGP signature

