def __init__(self, url, config, logger, context): TinyHandler.__init__(self, config, logger, context) self._file = None self._file_name = self._config['example.handler.filename'] % url self._url = 'http://%s/' % url self._summary = context['summary'] if 'summary' in context else ExampleHandlerSummary() context['summary'] = self._summary
def __init__(self, url, config, logger, context): TinyHandler.__init__(self, config, logger, context) self._file = None self._file_name = self._config['example.handler.filename'] % url self._url = 'http://%s/' % url self._summary = context[ 'summary'] if 'summary' in context else ExampleHandlerSummary() context['summary'] = self._summary
def on_timer(self, key): TinyHandler.on_timer(self, key)