[Python-modules-team] Bug#574640: patch

Stefano Zacchiroli zack at debian.org
Sat Mar 20 16:14:17 UTC 2010


On Fri, Mar 19, 2010 at 07:46:43PM +0100, Piotr Ożarowski wrote:
> tags 574640 + patch
> thanks

Thanks a lot for sparing me the need of investigating the actual change
in routes that triggered the failure! I'll apply the patch next week
(this week-end I'm traveling).

Enrico, if you find it convenient, can you give a try to the patch (I'll
do anyhow, but you told me that you have an application in production
affected by this bug: it will probably be a more complete test than
mine).

Cheers.

> # Routes >= 1.12 disables minimization by default, this patch enabled it in
> # TurboGears (since TG depends on this functionality)
> Index: turbogears2-2.0.3/tg/configuration.py
> ===================================================================
> --- turbogears2-2.0.3.orig/tg/configuration.py
> +++ turbogears2-2.0.3/tg/configuration.py
> @@ -211,6 +211,7 @@ class AppConfig(Bunch):
>  
>          map = Mapper(directory=config['pylons.paths']['controllers'],
>                      always_scan=config['debug'])
> +        map.minimization = True
>  
>          # Setup a default route for the root of object dispatch
>          map.connect('*url', controller='root', action='routes_placeholder')

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime





More information about the Python-modules-team mailing list