From: <fri...@us...> - 2008-12-22 07:46:51
|
Revision: 9478 http://translate.svn.sourceforge.net/translate/?rev=9478&view=rev Author: friedelwolff Date: 2008-12-22 07:46:49 +0000 (Mon, 22 Dec 2008) Log Message: ----------- Mark handle_matches() as private to make it clear that it is an internal function Modified Paths: -------------- src/trunk/virtaal/virtaal/plugins/tm/models/localtm.py src/trunk/virtaal/virtaal/plugins/tm/models/opentran.py src/trunk/virtaal/virtaal/plugins/tm/models/remotetm.py Modified: src/trunk/virtaal/virtaal/plugins/tm/models/localtm.py =================================================================== --- src/trunk/virtaal/virtaal/plugins/tm/models/localtm.py 2008-12-22 07:44:49 UTC (rev 9477) +++ src/trunk/virtaal/virtaal/plugins/tm/models/localtm.py 2008-12-22 07:46:49 UTC (rev 9478) @@ -60,9 +60,10 @@ if self.cache.has_key(query_str): self.emit('match-found', query_str, self.cache[query_str]) else: - self.tmclient.translate_unit(query_str, self.handle_matches) + self.tmclient.translate_unit(query_str, self._handle_matches) - def handle_matches(self, widget, query_str, matches): + def _handle_matches(self, widget, query_str, matches): + """Handle the matches when returned from self.tmclient.""" self.cache[query_str] = matches self.emit('match-found', query_str, matches) Modified: src/trunk/virtaal/virtaal/plugins/tm/models/opentran.py =================================================================== --- src/trunk/virtaal/virtaal/plugins/tm/models/opentran.py 2008-12-22 07:44:49 UTC (rev 9477) +++ src/trunk/virtaal/virtaal/plugins/tm/models/opentran.py 2008-12-22 07:46:49 UTC (rev 9478) @@ -51,8 +51,9 @@ if self.cache.has_key(query_str): self.emit('match-found', query_str, self.cache[query_str]) else: - self.tmclient.translate_unit(query_str, self.handle_matches) + self.tmclient.translate_unit(query_str, self._handle_matches) - def handle_matches(self, widget, query_str, matches): + def _handle_matches(self, widget, query_str, matches): + """Handle the matches when returned from self.tmclient.""" self.cache[query_str] = matches self.emit('match-found', query_str, matches) Modified: src/trunk/virtaal/virtaal/plugins/tm/models/remotetm.py =================================================================== --- src/trunk/virtaal/virtaal/plugins/tm/models/remotetm.py 2008-12-22 07:44:49 UTC (rev 9477) +++ src/trunk/virtaal/virtaal/plugins/tm/models/remotetm.py 2008-12-22 07:46:49 UTC (rev 9478) @@ -45,8 +45,9 @@ if self.cache.has_key(query_str): self.emit('match-found', query_str, self.cache[query_str]) else: - self.tmclient.translate_unit(query_str, self.handle_matches) + self.tmclient.translate_unit(query_str, self._handle_matches) - def handle_matches(self, widget, query_str, matches): + def _handle_matches(self, widget, query_str, matches): + """Handle the matches when returned from self.tmclient.""" self.cache[query_str] = matches self.emit('match-found', query_str, matches) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |