blob: 8cadaa085613a1e6a517ae3844240a323ca66f7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
from gitlab.base import * # noqa
from gitlab.mixins import * # noqa
__all__ = [
"ProjectWiki",
"ProjectWikiManager",
]
class ProjectWiki(SaveMixin, ObjectDeleteMixin, RESTObject):
_id_attr = "slug"
_short_print_attr = "slug"
class ProjectWikiManager(CRUDMixin, RESTManager):
_path = "/projects/%(project_id)s/wikis"
_obj_cls = ProjectWiki
_from_parent_attrs = {"project_id": "id"}
_create_attrs = (("title", "content"), ("format",))
_update_attrs = (tuple(), ("title", "content", "format"))
_list_filters = ("with_content",)
|