devtools/__init__.py
changeset 6751 02091c91520f
parent 6750 ef513c03a224
child 6843 b70a26ca271c
equal deleted inserted replaced
6737:de49060d4be3 6751:02091c91520f
    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
   179                                      + TwistedConfiguration.options)
   179                                      + TwistedConfiguration.options)
   180     cubicweb_appobject_path = TestServerConfiguration.cubicweb_appobject_path | TwistedConfiguration.cubicweb_appobject_path
   180     cubicweb_appobject_path = TestServerConfiguration.cubicweb_appobject_path | TwistedConfiguration.cubicweb_appobject_path
   181     cube_appobject_path = TestServerConfiguration.cube_appobject_path | TwistedConfiguration.cube_appobject_path
   181     cube_appobject_path = TestServerConfiguration.cube_appobject_path | TwistedConfiguration.cube_appobject_path
   182 
   182 
   183     def available_languages(self, *args):
   183     def available_languages(self, *args):
   184         return ('en', 'fr', 'de')
   184         return self.cw_languages()
   185 
   185 
   186     def pyro_enabled(self):
   186     def pyro_enabled(self):
   187         # but export PYRO_MULTITHREAD=0 or you get problems with sqlite and
   187         # but export PYRO_MULTITHREAD=0 or you get problems with sqlite and
   188         # threads
   188         # threads
   189         return True
   189         return True