SlackLog models¶
SlackLog models represent the ChangeLog.txt after parsing.
-
class
slacklog.models.
SlackLog
[source]¶ Bases:
object
Little more than a list of
slacklog.models.SlackLogEntry
objects.-
entries
= None¶ The list of
slacklog.models.SlackLogEntry
objects. 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:
object
An entry in a
slacklog.models.SlackLog
.-
timestamp
= None¶ A
datetime.datetime
timestamp in UTC.
-
description
= None¶ A unicode description which may be empty.
-
log
= None¶ Reference to the
slacklog.models.SlackLog
that 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.tzinfo
orNone
.
-
pkgs
= None¶ The list of
slacklog.models.SlackLogPkg
objects. Empty by default.
-