Revision¶
-
class
mwtypes.
Revision
(*args, **kwargs)[source]¶ Revision metadata and text
Attributes: -
id
= Revision ID : int¶
-
timestamp
= Revision timestamp : mwtypes.Timestamp | None¶
-
user
= Contributing user metadata : mwtypes.User` | None¶
-
page
= Page metadata : mwtypes.Page | None¶
-
minor
= Is revision a minor change? : bool | None¶
-
comment
= Comment left with revision : str | None¶
-
text
= Content of text : str | None¶
-
bytes
= Number of bytes of content : str | None¶
-
sha1
= sha1 hash of the content : str | None¶
-
parent_id
= Revision ID of preceding revision : int | None¶
-
model
= TODO: ??? : str | None¶
-
format
= TODO: ??? : str | None¶
-
deleted
= The deleted/suppressed status of the revision : mwtypes.revision.Deleted | None¶
-
class
Deleted
(*args, **kwargs)¶ Represents information about the deleted/suppressed status of a revision and it’s associated data.
Attributes: -
Deleted.
text
= Is the text of this revision deleted/suppressed? : bool | None¶
-
Deleted.
comment
= Is the text of this revision deleted/suppressed? : bool | None¶
-
Deleted.
user
= Is the user of this revision deleted/suppressed? : bool | None¶
-
Deleted.
restricted
= Is the revision restricted? : bool | None¶
-
classmethod
from_int
(integer)¶ Constructs a Deleted using the tinyint value of the rev_deleted column of the revision MariaDB table.
- DELETED_TEXT = 1
- DELETED_COMMENT = 2
- DELETED_USER = 4
- DELETED_RESTRICTED = 8
-
-