woob.capabilities.content
¶
- class Content(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Content object.
- Variables
url – (
str
) urltitle – (
str
) Title of contentauthor – (
str
) Original author of contentcontent – (
str
) Bodyrevision – (
str
) ID of revision
- class Revision(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Revision of a change on a content.
- Variables
url – (
str
) urlauthor – (
str
) Author of revisioncomment – (
str
) Comment log about revisiontimestamp – (
date
,datetime
) Date of revisionminor – (
bool
) Is this change minor?
- class CapContent[source]¶
Bases:
Capability
- iter_revisions(id)[source]¶
Iter revisions of a content.
- Parameters
id (str) – id of content
- Return type
iter[
Revision
]