예제 #1
0
    def __init__(self, app_directory, appConfig, **kwargs):
        """
        """
        spell_directories = []
        nsFragments = ('agatsuma', 'web', 'pylons', 'spells', 'common')
        spell_directories.extend ([self.internal_spell_space(*nsFragments)
                            ])
        spell_directories.extend(kwargs.get('spell_directories', []))
        kwargs['spell_directories'] = spell_directories

        Core.__init__(self, app_directory, appConfig, **kwargs)
        PylonsAdaptor.__init__(self, **kwargs)
예제 #2
0
 def __init__(self, app_directory, appConfig, **kwargs):
     spell_directories = []
     nsFragments = ('agatsuma', 'web', 'tornado', 'spells', 'common')
     spell_directories.extend ([self.internal_spell_space(*nsFragments)
                         ])
     spell_directories.extend(kwargs.get('spell_directories', []))
     kwargs['spell_directories'] = spell_directories
     extensions = kwargs.get('core_extensions', [])
     extensions.append(TornadoMPExtension)
     kwargs['core_extensions'] = extensions
     Core.__init__(self, app_directory, appConfig, **kwargs)
     if TornadoVersion and supported_tornado_version < TornadoVersion:
         log.tcore.info("Current Tornado version: %s" %(TornadoVersion, ))
         log.tcore.warning("Current Tornado version is not supported: %s>%s" % (TornadoVersion, supported_tornado_version))
예제 #3
0
 def _stop(self):
     #self.HTTPServer.stop()
     self.ioloop.stop()
     Core._stop(self)