redditwarp.models.wiki
#
- class redditwarp.models.wiki.WikiPageRevisionAuthorUser(d: Mapping[str, Any])[source]#
Bases:
DatamementoPropertiesMixin
This class is pretty much the same as
User
except theawardee_karma
,awarder_karma
,total_karma
fields are missing.- class Subreddit(d: Mapping[str, Any])[source]#
Bases:
object
- name: str#
- openness: str#
- subscriber_count: int#
- title: str#
- public_description: str#
- nsfw: bool#
- d: Mapping[str, Any]#
- id36: str#
- idn: int#
- id: int#
- name: str#
- created_ut: int#
- created_at: datetime#
- post_karma: int#
- comment_karma: int#
- has_verified_email: bool#
- is_admin: bool#
- is_a_subreddit_moderator: bool#
- icon_img: str#
- class redditwarp.models.wiki.WikiPage(d: 'Mapping[str, Any]', body: 'str', body_html: 'str', can_revise: 'bool', revision_uuid: 'str', revision_unixtime: 'int', revision_author: 'WikiPageRevisionAuthorUser', revision_message: 'str')[source]#
Bases:
DatamementoDataclassesMixin
- d: Mapping[str, Any]#
- body: str#
The wiki page markdown content.
- body_html: str#
The wiki page content as HTML.
- can_revise: bool#
True if the current user may edit the wiki page.
- revision_uuid: str#
The current revision UUID.
- revision_unixtime: int#
UNIX timestamp of when the current revision was commited.
- revision_author: WikiPageRevisionAuthorUser#
Author of the revision.
- revision_message: str#
The current revision message.
Up to 256 characters long.
- class redditwarp.models.wiki.WikiPageRevision(d: 'Mapping[str, Any]', uuid: 'str', unixtime: 'int', author: 'WikiPageRevisionAuthorUser', message: 'str', hidden: 'bool')[source]#
Bases:
DatamementoDataclassesMixin
- d: Mapping[str, Any]#
- uuid: str#
Revision UUID.
- unixtime: int#
UNIX timestamp of when the current revision was commited.
- author: WikiPageRevisionAuthorUser#
Author of the revision.
- message: str#
Revision message.
Up to 256 characters long.
True if the revision is hidden.
- class redditwarp.models.wiki.WikiPageSettings(permlevel: 'int', editors: 'Sequence[WikiPageRevisionAuthorUser]', indexed: 'bool')[source]#
Bases:
object
- permlevel: int#
Permission level indicating who can edit this wiki page.
“who can edit this page?”
0
: “use subreddit wiki permissions”1
: “only approved wiki contributors for this page may edit”2
: “only mods may edit and view”
- editors: Sequence[WikiPageRevisionAuthorUser]#
List of users allowed to edit this page.
- indexed: bool#
Whether this wiki page is indexed on the wiki page list.