equal
deleted
inserted
replaced
22 import os |
22 import os |
23 import sys |
23 import sys |
24 import logging |
24 import logging |
25 from datetime import timedelta |
25 from datetime import timedelta |
26 from os.path import (abspath, join, exists, basename, dirname, normpath, split, |
26 from os.path import (abspath, join, exists, basename, dirname, normpath, split, |
27 isfile, isabs) |
27 isfile, isabs, splitext) |
28 |
28 |
29 from logilab.common.date import strptime |
29 from logilab.common.date import strptime |
30 from cubicweb import CW_SOFTWARE_ROOT, ConfigurationError, schema, cwconfig |
30 from cubicweb import CW_SOFTWARE_ROOT, ConfigurationError, schema, cwconfig |
31 from cubicweb.server.serverconfig import ServerConfiguration |
31 from cubicweb.server.serverconfig import ServerConfiguration |
32 from cubicweb.etwist.twconfig import TwistedConfiguration |
32 from cubicweb.etwist.twconfig import TwistedConfiguration |
188 + TwistedConfiguration.options) |
188 + TwistedConfiguration.options) |
189 cubicweb_appobject_path = TestServerConfiguration.cubicweb_appobject_path | TwistedConfiguration.cubicweb_appobject_path |
189 cubicweb_appobject_path = TestServerConfiguration.cubicweb_appobject_path | TwistedConfiguration.cubicweb_appobject_path |
190 cube_appobject_path = TestServerConfiguration.cube_appobject_path | TwistedConfiguration.cube_appobject_path |
190 cube_appobject_path = TestServerConfiguration.cube_appobject_path | TwistedConfiguration.cube_appobject_path |
191 |
191 |
192 def available_languages(self, *args): |
192 def available_languages(self, *args): |
193 return ('en', 'fr', 'de', 'es') |
193 return self.cw_languages() |
194 |
194 |
195 def pyro_enabled(self): |
195 def pyro_enabled(self): |
196 # but export PYRO_MULTITHREAD=0 or you get problems with sqlite and |
196 # but export PYRO_MULTITHREAD=0 or you get problems with sqlite and |
197 # threads |
197 # threads |
198 return True |
198 return True |