SlackLog models

SlackLog models represent the ChangeLog.txt after parsing.

class slacklog.models.SlackLog[source]

Bases: object

Little more than a list of SlackLogEntry objects.

entries = None

The list of 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, twelveHourFormat=None)[source]

Bases: object

An entry in a SlackLog.

timestamp = None

A datetime.datetime timestamp in UTC.

description = None

A unicode description which may be empty.

log = None

Reference to the 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 or None.

twelveHourFormat = None

If this is True, the original timestamp was in twelve hour format.

pkgs = None

The list of SlackLogPkg objects. Empty by default.

class slacklog.models.SlackLogPkg(pkg, description, entry)[source]

Bases: object

An entry in a SlackLogEntry.

pkg = None

A unicode package identifier.

description = None

A unicode description.

entry = None

Reference to the SlackLogEntry that contains this package.