From 61e64e8cfd3c09b67d8cd93d2c366d02d02ff4e6 Mon Sep 17 00:00:00 2001 From: winterstream Date: Tue, 1 Jul 2008 14:47:22 +0000 Subject: [PATCH] pootlefile.getitem was previously modified not to trigger full-scale quality checks on a unit, with the aim of speeding up common operations. At the moment though, there is no other code to trigger checks, which means that the quality checking functionality doesn't work with these changes. We really ought to work on this high coupling that causes so much unexpected breakage. git-svn-id: http://translate.svn.sourceforge.net/svnroot/translate/src/trunk/Pootle@7687 54714841-351b-0410-a198-e36a94b762f5 --- pootlefile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pootlefile.py b/pootlefile.py index 147f6c6..056afbd 100644 --- a/pootlefile.py +++ b/pootlefile.py @@ -479,7 +479,7 @@ class pootlefile(pootlebase): def getitem(self, item): """Returns a single unit based on the item number.""" - return self.units[self.statistics.getstats(_UNIT_CHECKER)["total"][item]] + return self.units[self.statistics.getstats()["total"][item]] def iteritems(self, search, lastitem=None): """iterates through the items in this pofile starting after the given lastitem, using the given search""" -- 2.11.4.GIT