Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ka_controller.py
diff options
context:
space:
mode:
authorThomas Jourdan <b.vehikel@googlemail.com>2009-12-06 21:43:25 (GMT)
committer Thomas Jourdan <b.vehikel@googlemail.com>2009-12-06 21:43:25 (GMT)
commitf5ba3b40da10c79508b2e43e9a99b3db78ba4d5b (patch)
treeeea5b34fd415991e608a9c18f34fa529433415c8 /ka_controller.py
parent6b79c336ecf1e3c4704c470daf29d2cf2ad8cbef (diff)
preparing ka_widget for Pootle
Diffstat (limited to 'ka_controller.py')
-rw-r--r--ka_controller.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ka_controller.py b/ka_controller.py
index 932a4d7..ae67359 100644
--- a/ka_controller.py
+++ b/ka_controller.py
@@ -26,6 +26,9 @@ import kandidtube
import model_random
import ka_task
+POPULATION_CAPACITY = 12
+INCOMMING_CAPACITY = 3
+
class KandidController(object):
"""
inv: self.model is not None
@@ -41,9 +44,9 @@ class KandidController(object):
self._tube = None
# create data model
- self.model = model_population.KandidModel(12)
+ self.model = model_population.KandidModel(POPULATION_CAPACITY)
self.model.randomize()
- self.incoming = ka_incoming.KandidIncoming(3)
+ self.incoming = ka_incoming.KandidIncoming(INCOMMING_CAPACITY)
self.surface_cache = {}