On Tue, 05 Jan 2010 14:57:17 +0100 Johannes Ahlers <[email protected]> wrote:
> I think this is a bug in Pootle, isn't it? yes it is and a silly one too, sorry for all the trouble you had to go through to identify it I should have just reread the refresh stats code. attached a patch that should fix this. if it works we'll include it in the upcoming 2.0.1 bugfix release. cheers, Alaa
>From b297019d8cd90fdd70d7b8076ffa2aaf40f736f6 Mon Sep 17 00:00:00 2001 From: alaaosh <alaa...@54714841-351b-0410-a198-e36a94b762f5> Date: Tue, 5 Jan 2010 14:36:30 +0000 Subject: [PATCH] precache getquickstats() as well as getcompletestats(), mostly useful when using memcached git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/tr...@13585 54714841-351b-0410-a198-e36a94b762f5 --- .../management/commands/refresh_stats.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Pootle/local_apps/pootle_app/management/commands/refresh_stats.py b/Pootle/local_apps/pootle_app/management/commands/refresh_stats.py index a5fb536..55860a2 100644 --- a/Pootle/local_apps/pootle_app/management/commands/refresh_stats.py +++ b/Pootle/local_apps/pootle_app/management/commands/refresh_stats.py @@ -53,7 +53,7 @@ class Command(NoArgsCommand): # translation project no longer exists translation_project.delete() continue - + # rescan translation_projects project_tree.scan_translation_project_files(translation_project) if recompute: @@ -68,7 +68,7 @@ class Command(NoArgsCommand): # initialized. The indexer will update the text index of the # TranslationProject if it is out of date. translation_project.indexer - + logging.info("Updating stats for %s", translation_project.fullname) translation_project.getcompletestats() - + translation_project.getquickstats() -- 1.6.4.4
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ Translate-pootle mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
