Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 """Contains a formatter for a dynamic output module for plaso.""" | 2 """Contains a formatter for a dynamic output module for plaso.""" |
3 | 3 |
4 import logging | 4 import logging |
5 | 5 |
6 from plaso.lib import errors | 6 from plaso.lib import errors |
7 from plaso.lib import py2to3 | 7 from plaso.lib import py2to3 |
8 from plaso.lib import timelib | 8 from plaso.lib import timelib |
9 from plaso.output import interface | 9 from plaso.output import interface |
10 from plaso.output import manager | 10 from plaso.output import manager |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
273 """Formats the username. | 273 """Formats the username. |
274 | 274 |
275 Args: | 275 Args: |
276 event (EventObject): event. | 276 event (EventObject): event. |
277 | 277 |
278 Returns: | 278 Returns: |
279 str: username field. | 279 str: username field. |
280 """ | 280 """ |
281 return self._output_mediator.GetUsername(event) | 281 return self._output_mediator.GetUsername(event) |
282 | 282 |
283 def _FormatZone(self, unused_event): | 283 def _FormatZone(self, unused_event): # pylint: disable=unused-argument |
onager
2017/07/25 08:22:41
Why is this required? Is pylint not detecting unus
Joachim Metz
2017/07/25 08:41:46
due to pylint 1.7 changes; we'll have to update th
| |
284 """Formats the time zone. | 284 """Formats the time zone. |
285 | 285 |
286 Args: | 286 Args: |
287 event (EventObject): event. | 287 event (EventObject): event. |
288 | 288 |
289 Returns: | 289 Returns: |
290 str: time zone field. | 290 str: time zone field. |
291 """ | 291 """ |
292 return self._output_mediator.timezone | 292 return self._output_mediator.timezone |
293 | 293 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
407 | 407 |
408 output_line = u'{0:s}\n'.format(self._field_delimiter.join(output_values)) | 408 output_line = u'{0:s}\n'.format(self._field_delimiter.join(output_values)) |
409 self._WriteLine(output_line) | 409 self._WriteLine(output_line) |
410 | 410 |
411 def WriteHeader(self): | 411 def WriteHeader(self): |
412 """Writes the header to the output.""" | 412 """Writes the header to the output.""" |
413 self._WriteLine(u'{0:s}\n'.format(self._field_delimiter.join(self._fields))) | 413 self._WriteLine(u'{0:s}\n'.format(self._field_delimiter.join(self._fields))) |
414 | 414 |
415 | 415 |
416 manager.OutputManager.RegisterOutput(DynamicOutputModule) | 416 manager.OutputManager.RegisterOutput(DynamicOutputModule) |
LEFT | RIGHT |