SlackLog models¶
SlackLog models represent the ChangeLog.txt after parsing.
-
class
slacklog.models.SlackLog[source]¶ Bases:
objectLittle more than a list of
slacklog.models.SlackLogEntryobjects.-
entries= None¶ The list of
slacklog.models.SlackLogEntryobjects. Empty by default.
-
startsWithSeparator= None¶ Whether the log started with entry separator.
If this is
True, it implies that the empty element preceding that separator was dropped.This defaults to
False.
-
endsWithSeparator= None¶ Whether the log ended with entry separator.
If this is
True, it implies that the empty element following that separator was dropped.This defaults to
False.
-
-
class
slacklog.models.SlackLogEntry(timestamp, description, log, checksum=None, identifier=None, parent=None, timezone=None)[source]¶ Bases:
objectAn entry in a
slacklog.models.SlackLog.-
timestamp= None¶ A
datetime.datetimetimestamp in UTC.
-
description= None¶ A unicode description which may be empty.
-
log= None¶ Reference to the
slacklog.models.SlackLogthat contains this entry.
-
checksum= None¶ A unicode checksum or
None.This should identify the entry by content. Two different logs may have the same entry, but those entries have different parent.
-
identifier= None¶ A unicode identifier or
None.This should identify the entry by content and parent.
-
parent= None¶ A unicode parent identifier or
None.
-
timezone= None¶ The original timezone of the entry as
datetime.tzinfoorNone.
-
pkgs= None¶ The list of
slacklog.models.SlackLogPkgobjects. Empty by default.
-