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,'')
Esempio n. 2
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, '')
Esempio n. 3
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, '')
Esempio n. 4
0
 def __init__(self, *vars):
     Adapter.__init__(self, webKitDir)
     HTTPHandler.__init__(self, *vars)
Esempio n. 5
0
 def __init__(self, *vars):
     Adapter.__init__(self, webKitDir)
     HTTPHandler.__init__(self, *vars)