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,'')
示例#2
0
 def defaultConfig(self):
     config = Adapter.defaultConfig(self)
     config.update(
         ShowConsole = False,
         ConsoleWidth = 80, # use 0 to turn off
         ConsoleHangingIndent = 4,
     )
     return config
示例#3
0
 def defaultConfig(self):
     config = Adapter.defaultConfig(self)
     config.update(
         ShowConsole=False,
         ConsoleWidth=80,  # use 0 to turn off
         ConsoleHangingIndent=4,
     )
     return config
示例#4
0
	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, '')
示例#5
0
    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, '')
示例#6
0
 def __init__(self, *vars):
     Adapter.__init__(self, webKitDir)
     HTTPHandler.__init__(self, *vars)
示例#7
0
 def __init__(self, *vars):
     Adapter.__init__(self, webKitDir)
     HTTPHandler.__init__(self, *vars)