def __init__(self, module): hooks = { "create_svr_config" : self.create_svr_config, "content_handler" : self.content_handler, } for hook in hooks.keys(): module.add_hook(hook, hooks[hook]) directives = { "WebwareAddress" : (mod_snake.RSRC_CONF,mod_snake.TAKE1, self.cmd_WebwareAddress), "WebwareChunkSize":(mod_snake.RSRC_CONF,mod_snake.TAKE1, self.cmd_WebwareChunkSize) } module.add_directives(directives) Adapter.__init__(self,'')
def defaultConfig(self): config = Adapter.defaultConfig(self) config.update( ShowConsole = False, ConsoleWidth = 80, # use 0 to turn off ConsoleHangingIndent = 4, ) return config
def defaultConfig(self): config = Adapter.defaultConfig(self) config.update( ShowConsole=False, ConsoleWidth=80, # use 0 to turn off ConsoleHangingIndent=4, ) return config
def __init__(self, module): hooks = { 'create_svr_config' : self.create_svr_config, 'content_handler': self.content_handler, } for hook in hooks.keys(): module.add_hook(hook, hooks[hook]) directives = { 'WebwareAddress' : (mod_snake.RSRC_CONF,mod_snake.TAKE1, self.cmd_WebwareAddress), 'WebwareChunkSize': (mod_snake.RSRC_CONF,mod_snake.TAKE1, self.cmd_WebwareChunkSize) } module.add_directives(directives) Adapter.__init__(self, '')
def __init__(self, module): hooks = dict( create_svr_config = self.create_svr_config, content_handler = self.content_handler, ) for hook in hooks: module.add_hook(hook, hooks[hook]) directives = dict( WebwareAddress = (mod_snake.RSRC_CONF,mod_snake.TAKE1, self.cmd_WebwareAddress), WebwareChunkSize = (mod_snake.RSRC_CONF,mod_snake.TAKE1, self.cmd_WebwareChunkSize), ) module.add_directives(directives) Adapter.__init__(self, '')
def __init__(self, *vars): Adapter.__init__(self, webKitDir) HTTPHandler.__init__(self, *vars)