LogItem

class mwtypes.LogItem(*args, **kwargs)[source]

Log item metadata

Attributes:
id = Log item ID : int
timestamp = Log item timestamp : mwtypes.Timestamp | None
user = Contributing user metadata : mwtypes.User | None
page = Contributing user metadata : mwtypes.log_item.Page | None
comment = Comment left with log item : str | None
type = Content of text : str | None
action = Content of text : str | None
text = Content of text : str | None
params = Content of params : str | None
deleted = The deleted/suppressed status of the log item : mwtypes.log_item.Deleted | None
class Deleted(*args, **kwargs)

Represents information about the deleted/suppressed status of a log item and it’s associated data.

Attributes:
Deleted.action = Is the action of this log item deleted/suppressed? : bool | None
Deleted.comment = Is the text of this log item deleted/suppressed? : bool | None
Deleted.user = Is the user of this log item deleted/suppressed? : bool | None
Deleted.restricted = Is the log item restricted? : bool | None
classmethod from_int(integer)

Constructs a Deleted using the tinyint value of the log_deleted column of the logging MariaDB table.

  • DELETED_ACTION = 1
  • DELETED_COMMENT = 2
  • DELETED_USER = 4
  • DELETED_RESTRICTED = 8
class LogItem.Page(*args, **kwargs)

Log item page information

Attributes:
Page.namespace = namespace ID : int
Page.title = title : str