devtools/__init__.py
brancholdstable
changeset 6749 48f468f33704
parent 6729 1a423eaee782
child 6750 ef513c03a224
--- a/devtools/__init__.py	Fri Dec 10 15:17:16 2010 +0100
+++ b/devtools/__init__.py	Fri Dec 10 12:17:18 2010 +0100
@@ -24,7 +24,7 @@
 import logging
 from datetime import timedelta
 from os.path import (abspath, join, exists, basename, dirname, normpath, split,
-                     isfile, isabs)
+                     isfile, isabs, splitext)
 
 from logilab.common.date import strptime
 from cubicweb import CW_SOFTWARE_ROOT, ConfigurationError, schema, cwconfig
@@ -190,7 +190,7 @@
     cube_appobject_path = TestServerConfiguration.cube_appobject_path | TwistedConfiguration.cube_appobject_path
 
     def available_languages(self, *args):
-        return ('en', 'fr', 'de', 'es')
+        return self.cw_languages()
 
     def pyro_enabled(self):
         # but export PYRO_MULTITHREAD=0 or you get problems with sqlite and