Пример #1
0
 def is_testing_mode( self ):
     if not hasattr( self, '__test_mode'):
         self.__test_mode = is_supported() and is_testing_mode()
     return self.__test_mode
Пример #2
0
 def is_testing_mode(self):
     if not hasattr(self, "__test_mode"):
         self.__test_mode = is_supported() and is_testing_mode()
     return self.__test_mode
Пример #3
0
 def get_context_data( self, *args, **kwargs ):
     try:
         from film20.search.solr_helper import build_daemon, configuration, is_supported
         is_supported = is_supported()
     except Exception, e:
         is_supported = False