From: <al...@us...> - 2010-04-29 19:40:19
|
Revision: 14383 http://translate.svn.sourceforge.net/translate/?rev=14383&view=rev Author: alaaosh Date: 2010-04-29 19:40:13 +0000 (Thu, 29 Apr 2010) Log Message: ----------- correct test for no pending file Modified Paths: -------------- src/trunk/Pootle/local_apps/pootle_store/models.py Modified: src/trunk/Pootle/local_apps/pootle_store/models.py =================================================================== --- src/trunk/Pootle/local_apps/pootle_store/models.py 2010-04-29 19:39:19 UTC (rev 14382) +++ src/trunk/Pootle/local_apps/pootle_store/models.py 2010-04-29 19:40:13 UTC (rev 14383) @@ -787,7 +787,7 @@ def import_pending(self): """import suggestions from legacy .pending files, into database""" self.init_pending() - if self.pending is None: + if not self.pending: return for sugg in [sugg for sugg in self.pending.store.units if sugg.istranslatable() and sugg.istranslated()]: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |